<?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=13683&amp;type=atom" />
	<updated>2018-05-08T18:52:02Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=13683</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Многопоточность]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=125231#p125231" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong>, спасибо.</p>]]></content>
			<author>
				<name><![CDATA[Limon4ek]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38982</uri>
			</author>
			<updated>2018-05-08T18:52:02Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=125231#p125231</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Многопоточность]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=125228#p125228" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>Gui, Add, Pic, x1 y0 w50 h50 v1, bind.png
Gui, Add, Pic, x1 y0 w50 h50 v1CD Hidden, bind1.png
Gui, Add, text, x12 y7 w40 h40 c3cfffd vtest +BackGroundTrans Hidden, 17 ;static3
Gui, Show, w100, CHECK

Sleep, 1000

; этот код может быть выполнен из другого файла
WinWait, CHECK ahk_class AutoHotkeyGUI  ; чтобы каждый раз не указывать окно

Control, Hide,, Static1
Control, Show,, Static2
Control, Show,, Static3

loop 18
{
   WinSet, Redraw  ; нужно выполнить для правильной перерисовки, если используется BackGroundTrans
   ControlSetText, Static3, % 18 - A_Index
   Sleep, 1000
}

Control, Show,, Static1
Control, Hide,, Static2
Control, Hide,, Static3</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2018-05-08T17:11:33Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=125228#p125228</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Многопоточность]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=125222#p125222" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong>, окей,жду.</p>]]></content>
			<author>
				<name><![CDATA[Limon4ek]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38982</uri>
			</author>
			<updated>2018-05-08T14:44:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=125222#p125222</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Многопоточность]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=125215#p125215" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><p>У вас один видимый контрол накладывается на другой, так нельзя, из-за этого они неправильно перерисовываются.</p></blockquote></div><p>Нет, тут я не прав. Эффект связан с применением +BackGroundTrans, попозже напишу как можно его избежать.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2018-05-08T11:32:25Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=125215#p125215</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Многопоточность]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=125214#p125214" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong>, а как мне исправить данную проблему?</p>]]></content>
			<author>
				<name><![CDATA[Limon4ek]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38982</uri>
			</author>
			<updated>2018-05-08T11:17:49Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=125214#p125214</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Многопоточность]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=125213#p125213" />
			<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>2018-05-08T11:04:55Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=125213#p125213</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Многопоточность]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=125212#p125212" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong>, хорошо, если изображение Вам ничего не говорит, вот скрипт:<br /></p><div class="codebox"><pre><code>;первый файл
Gui,add, picture, x1 y0 w50 h50 v1, .\bind.png ;static 1
Gui,add, picture, x1 y0 w50 h50 v1CD , .\bind1.png ;static2
GuiControl, hide, 1CD
GUI,add, text, x12 y7 w40 h40 c3cfffd vtest +BackGroundTrans, 17 ;static3
GuiControl, hide, test

gui,show,w100,CHECK
sleep,1000
run, %A_ScriptDir%\2.ahk
</code></pre></div><div class="codebox"><pre><code>;второй файл
check:=17
msgbox,,check,check
Control, Hide,, Static1, CHECK ahk_class AutoHotkeyGUI
Control, Show,, Static2, CHECK ahk_class AutoHotkeyGUI


loop, 18
{
	if check &gt; 0 
	{
		Control, show,, Static3, CHECK ahk_class AutoHotkeyGUI
		ControlSetText, Static3, %check%, CHECK ahk_class AutoHotkeyGUI
		Sleep,1000
		check--
		
		
	}
	Else
	{
	ControlSetText, Static3, %check%, CHECK ahk_class AutoHotkeyGUI
	Control, Hide,, Static2, CHECK ahk_class AutoHotkeyGUI
	Control, show,, Static1, CHECK ahk_class AutoHotkeyGUI
	Control, hide,, Static3, CHECK ahk_class AutoHotkeyGUI
	
	}
}
check:= 17</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Limon4ek]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38982</uri>
			</author>
			<updated>2018-05-08T10:56:58Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=125212#p125212</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Многопоточность]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=125198#p125198" />
			<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>2018-05-07T19:42:01Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=125198#p125198</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Многопоточность]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=125197#p125197" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong>, в данный момент всё дело выглядит так:<br /><a href="https://imgbb.com/"><span class="postimg"><img src="https://image.ibb.co/b2m6uS/AHK2.png" alt="https://image.ibb.co/b2m6uS/AHK2.png" /></span></a><br /><a href="https://imgbb.com/"><span class="postimg"><img src="https://image.ibb.co/njWvon/ahk3.png" alt="https://image.ibb.co/njWvon/ahk3.png" /></span></a></p>]]></content>
			<author>
				<name><![CDATA[Limon4ek]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38982</uri>
			</author>
			<updated>2018-05-07T19:36:57Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=125197#p125197</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Многопоточность]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=125194#p125194" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>Gui, Add, Text,, очень длинный текст ; контрол должен быть достаточной ширины, чтоб вместить новый текст
Gui, Show, w150, MyGui
Sleep, 1000

; следующий код может быть выполнен из другого скрипта
ControlSetText, Static1, короткий текст, MyGui ahk_class AutoHotkeyGUI</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2018-05-07T18:37:37Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=125194#p125194</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Многопоточность]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=125193#p125193" />
			<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>2018-05-07T18:36:14Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=125193#p125193</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Многопоточность]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=125191#p125191" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong>,спасибо, но после изменения текст накладывается на старый.</p>]]></content>
			<author>
				<name><![CDATA[Limon4ek]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38982</uri>
			</author>
			<updated>2018-05-07T18:18:20Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=125191#p125191</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Многопоточность]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=125189#p125189" />
			<content type="html"><![CDATA[<p>ControlSetText.<br /></p><div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><p>Вообще-то так</p></blockquote></div><p>Действительно.</p>]]></content>
			<author>
				<name><![CDATA[stealzy]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31937</uri>
			</author>
			<updated>2018-05-07T18:10:15Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=125189#p125189</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Многопоточность]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=125188#p125188" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>Gui, Add, Text, w100, my text  ; контрол должен быть достаточной ширины, чтоб вместить новый текст
Gui, Show, w150, MyGui
Sleep, 1000

; следующий код может быть выполнен из другого скрипта
ControlSetText, Static1, new text, MyGui ahk_class AutoHotkeyGUI</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2018-05-07T18:08:12Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=125188#p125188</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Многопоточность]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=125186#p125186" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong>, спасибо, всё понятно, но как быть с изменением текста? Ибо </p><div class="codebox"><pre><code>Guicontrol, ,TEXT ,%var%</code></pre></div><p> работал без первого параметра, но </p><div class="codebox"><pre><code>Control,,%var%, Static21, MyGui ahk_class AutoHotkeyGUI</code></pre></div><p> уже не пройдёт.</p>]]></content>
			<author>
				<name><![CDATA[Limon4ek]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38982</uri>
			</author>
			<updated>2018-05-07T16:24:22Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=125186#p125186</id>
		</entry>
</feed>
