<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Только текст]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=9112&amp;type=atom" />
	<updated>2014-01-05T01:51:30Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=9112</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Только текст]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=78913#p78913" />
			<content type="html"><![CDATA[<p>Можно:<br /></p><div class="codebox"><pre><code>FontFile := &quot;D:\AHK\Scripts\_Разработка\MagicSchoolOne.ttf&quot;  ; указать путь к файлу со шрифтом
FontName := &quot;Magic School One&quot;                               ; указать имя шрифта из файла

GuiColor := 0x0000FD
FontColor := 0x0000FF

if !DllCall(&quot;AddFontResourceEx&quot;, Str, FontFile, UInt, FR_PRIVATE := 0x10, Ptr, 0)
{
   MsgBox, % &quot;Не удалось установить шрифт. Ошибка &quot; . A_LastError
   return
}

SendMessage, WM_FONTCHANGE := 0x1D , 0, 0,, % &quot;ahk_id&quot; HWND_BROADCAST := 0xFFFF

Gui, -Caption +ToolWindow +LastFound
Gui, Color, % GuiColor
Gui, Font, s50 c%FontColor%, % FontName
Gui, Add, Text,, It&#039;s my font
WinSet, TransColor, % GuiColor
Gui, Show</code></pre></div><p>Но всё равно для этой цели луше GDI+ использовать.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2014-01-05T01:51:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=78913#p78913</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Только текст]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=78910#p78910" />
			<content type="html"><![CDATA[<p>А нельзя внедрить в скрипт свой пиксельный шрифт, который не будет использовать сглаживание?</p>]]></content>
			<author>
				<name><![CDATA[Foma]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31521</uri>
			</author>
			<updated>2014-01-05T00:52:00Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=78910#p78910</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Только текст]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=78906#p78906" />
			<content type="html"><![CDATA[<p>Да, чтобы текст выводился более плавно, лучше пользоваться <a href="http://www.autohotkey.com/board/topic/29449-gdi-standard-library-145-by-tic/?hl=%20gdip">GDI+</a>. Там библиотека только под 32-битный интерпретатор, но есть и под 64-битные.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2014-01-04T23:58:43Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=78906#p78906</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Только текст]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=78905#p78905" />
			<content type="html"><![CDATA[<p>Всё равно некрасивый контур вокруг. Можете предложить другой выход?</p>]]></content>
			<author>
				<name><![CDATA[Foma]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31521</uri>
			</author>
			<updated>2014-01-04T23:53:53Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=78905#p78905</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Только текст]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=78900#p78900" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Foma пишет:</cite><blockquote><p>остаётся некрасивый контур близкий к цвету фона. Как это исправить?</p></blockquote></div><p>Брать близкие цвета фона и текста:<br /></p><div class="codebox"><pre><code>cgui := 0xFF0001
fcolor := 0xFF0000

Gui, -Caption +ToolWindow +LastFound
Gui, Color, % cgui
Gui, font, s30 c%fcolor%, Arial
Gui, Add, Text, w250 h40, 56789

WinSet, TransColor, %cgui% 200
Gui, Show</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2014-01-04T21:28:04Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=78900#p78900</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Только текст]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=78899#p78899" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>cgui = 0x0000FF
fcolor = 0xFF00000
Gui,Color, %cgui%
Gui,font, s30 c%fcolor%, Arial
Gui,Add, Text, w250 h40, 56789
Gui, +Lastfound
WinSet, TransColor, 0000ff 250
Gui, -SysMenu -Caption
Gui,Show, x600 y500 w400 h300, gui
return

F1::
ExitApp</code></pre></div><p>или<br /></p><div class="codebox"><pre><code>cgui = 0x0000FF
fcolor = 0xFF00000
Gui,Color, %cgui%
Gui,font, s30 c%fcolor%, Arial
Gui,Add, Text, w250 h40, 56789
Gui, +Lastfound
WinSet, TransColor, %cgui%
Gui, -SysMenu -Caption
Gui,Show, x600 y500 w400 h300, gui
return

F1::
ExitApp</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Foma]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31521</uri>
			</author>
			<updated>2014-01-04T21:07:37Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=78899#p78899</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Только текст]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=78882#p78882" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Foma пишет:</cite><blockquote><p>Как это исправить?</p></blockquote></div><p>Смотря как выводите, код покажите.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2014-01-04T17:55:38Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=78882#p78882</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Только текст]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=78876#p78876" />
			<content type="html"><![CDATA[<p>Если выводить текст в gui и делать фон прозрачным, остаётся некрасивый контур близкий к цвету фона. Как это исправить?</p>]]></content>
			<author>
				<name><![CDATA[Foma]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31521</uri>
			</author>
			<updated>2014-01-04T16:56:58Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=78876#p78876</id>
		</entry>
</feed>
