<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: GUI.Text]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=5673&amp;type=atom" />
	<updated>2020-03-13T00:07:37Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=5673</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI.Text]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=138493#p138493" />
			<content type="html"><![CDATA[<p>Вариант выделения цифр в переменной) —</p><p>Код обрезается на символе юникода. Суть в замене цифр на юникодные цифры.</p>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2020-03-13T00:07:37Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=138493#p138493</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI.Text]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=138492#p138492" />
			<content type="html"><![CDATA[<p>Просто в одном и том же контроле показывайте разные тексты.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2020-03-12T20:26:20Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=138492#p138492</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI.Text]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=138491#p138491" />
			<content type="html"><![CDATA[<p>Не попадал в GUI, чтобы в из разных циклов можно было выводить разные Text, и чтобы они одновременно не показывались в GUI.</p>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2020-03-12T20:24:27Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=138491#p138491</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI.Text]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=138490#p138490" />
			<content type="html"><![CDATA[<p>Не попадал куда?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2020-03-12T20:19:05Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=138490#p138490</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI.Text]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=138489#p138489" />
			<content type="html"><![CDATA[<p>А если в скрипте несколько циклов, как сделать, чтобы прописанный в GUI Text2 не попадал вместе с Text3 ?<br /></p><div class="codebox"><pre><code>
Count := &quot;99&quot;
Gui, +AlwaysOnTop -Caption +ToolWindow  
Gui, Font, S7 Bold c000000, Tahoma
Gui, Add, Text, vText1 cRed y0 x0 w50 h11 right
Gui, Add, Text, vText2 cGreen yp x+3 w50 h11 left, / %Count%
Gui, Add, Text, vText3 cBlue y0 x0 w50 h11 right
Gui, Show, NA y0 x450 h11

loop % count {
   GuiControl, , Text1, %A_Index%
   sleep 10
}
loop % count {
   GuiControl, , Text3, %A_Index%
   sleep 10
}
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2020-03-12T20:16:32Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=138489#p138489</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI.Text]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=138488#p138488" />
			<content type="html"><![CDATA[<p>Чему — этому? У вас ведь там только цвет меняется. Содержание не в этом блоке, оно ниже.</p><div class="quotebox"><cite>DD пишет:</cite><blockquote><p>Если второй контрол вообще вынести из цикла, то он не отображается в GUI</p></blockquote></div><p>Это что за чудеса такие? В AHK такого закона нет. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /> Просто правильно позиционируйте. Смотрите, сколько реально контрол места занимает. У вас каждый из контролов имеет ширину 100, они идут подряд, и каким-то образом у всего окна ширина тоже 100. Парадокс?<br /></p><div class="codebox"><pre><code>Count := &quot;999&quot;
Gui, +AlwaysOnTop -Caption +ToolWindow  
Gui, Font, S7 Bold c000000, Tahoma
Gui, Add, Text, vText1 cRed y0 x0 w50 h11 right
Gui, Add, Text, vText2 cGreen yp x+3 w50 h11 left, / %Count%
Gui, Show, NA y0 x450 h11

loop % count {
   GuiControl, , Text1, %A_Index%
   sleep 10
}
return </code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2020-03-12T19:58:41Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=138488#p138488</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI.Text]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=138487#p138487" />
			<content type="html"><![CDATA[<p>Разве «<strong>if (A_Index = 1)</strong>» этому не препятствует? Если второй контрол вообще вынести из цикла, то он не отображается в GUI.</p>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2020-03-12T19:48:01Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=138487#p138487</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI.Text]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=138486#p138486" />
			<content type="html"><![CDATA[<p>Когда меняется — тогда и меняйте. Сейчас у вас в каждой итерации значение второго контрола каждый раз перерисовывается на то же самое, это вызывает мелькание.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2020-03-12T19:41:49Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=138486#p138486</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI.Text]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=138485#p138485" />
			<content type="html"><![CDATA[<p>Но у меня в скрипте содержание контрола несколько раз меняется.</p>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2020-03-12T19:35:58Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=138485#p138485</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI.Text]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=138484#p138484" />
			<content type="html"><![CDATA[<p>Если цвет нужно установить один раз, это можно делать при создании контрола. Второй контрол тоже ни к чему прописывать в цикле, там ведь текст не меняется.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2020-03-12T19:31:28Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=138484#p138484</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI.Text]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=138483#p138483" />
			<content type="html"><![CDATA[<p>Впрочем, да, годно получается). Как раз надо было, чтобы каждый сегмент текста из GUI имел фиксированный размер, так как иначе он весь скачет, в зависимости от количества символов.<br /></p><div class="codebox"><pre><code>Count := &quot;999&quot;
Gui, +AlwaysOnTop -Caption +ToolWindow  
Gui, Font, S7 Bold c000000, Tahoma
Gui, Add, Text, vText1 y1 x4 w100 h11
Gui, Add, Text, vText2 y1 x30 w100 h11
Gui, Show, NA y-3 x450 w100 h11

loop
{
   if (A_Index = 1)
   {
      GuiControl, +cRed +Redraw, Text1
      GuiControl, +cGreen +Redraw, Text2
   }
   GuiControl, , Text1, %A_Index%/
   GuiControl, , Text2, %Count%
   If A_Index = %Count%
      break
   sleep 10
}
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2020-03-12T19:26:11Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=138483#p138483</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI.Text]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=138482#p138482" />
			<content type="html"><![CDATA[<p>Почему долго? Цифры проставили, и фсё.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2020-03-12T18:48:41Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=138482#p138482</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI.Text]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=138481#p138481" />
			<content type="html"><![CDATA[<p>Всё равно так долго настраивать, не говоря о настройке отступов между двумя тестами.</p>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2020-03-12T18:42:11Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=138481#p138481</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI.Text]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=138480#p138480" />
			<content type="html"><![CDATA[<p>Почти. Наверно не нужно менять цвет в каждой итерации цикла, это вызывает мелькание. Меняйте только один раз.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2020-03-12T18:37:09Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=138480#p138480</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI.Text]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=138479#p138479" />
			<content type="html"><![CDATA[<p>Типа так? </p><div class="codebox"><pre><code>Count := &quot;999&quot;
Gui, +AlwaysOnTop -Caption +ToolWindow  
Gui, Font, S11 Bold c000000, Tahoma
Gui, Add, Text,y0 vText1 +0x201 w88 
Gui, Add, Text,y0 vText2 +0x201 w88 
Gui, Show, NA y-3 xCenter

loop
{
   GuiControl, +cRed +Redraw, Text1
   GuiControl, +cGreen +Redraw, Text2
   GuiControl, , Text1, %A_Index%/
   GuiControl, , Text2, %Count%
   If A_Index = %Count%
      break
   sleep 10
}
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2020-03-12T18:32:45Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=138479#p138479</id>
		</entry>
</feed>
