<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Использование GuiControl]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=13515</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=13515&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Использование GuiControl».]]></description>
		<lastBuildDate>Tue, 06 Mar 2018 17:42:40 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Использование GuiControl]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=123961#p123961</link>
			<description><![CDATA[<p>Всё, разобрался, в первую часть к gui, add добавил timeis:, и его же в guicontrol<br /></p><div class="codebox"><pre><code>Gui, timeis:Add
GuiControl, timeis:,</code></pre></div><p>Я тормоз...</p>]]></description>
			<author><![CDATA[null@example.com (timk50)]]></author>
			<pubDate>Tue, 06 Mar 2018 17:42:40 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=123961#p123961</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Использование GuiControl]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=123959#p123959</link>
			<description><![CDATA[<p>Как реализовать изменение Gui Text из другой, как бы, функции? Код ниже(где многоточие - пропустил ненужный код).<br /></p><div class="codebox"><pre><code>
Gui, New,, %widgetname%
global Timenow
Gui, -border +AlwaysOnTop
Gui, Add, Text, x5px y5px, Время сейчас:
Gui, Add, Text, x80px y5px vTimenow hwndTimenowhwnd, %A_Hour%`:%A_Min%`:%A_Sec%
SetTimer, TimeUpdate, 1
...
TimeUpdate:
SetTimer, TimeUpdate, off
Loop
{
	link := &quot;http://time.is&quot;
	req := ComObjCreate(&quot;WinHTTP.WinHTTPRequest.5.1&quot;)
	req.Open(&quot;GET&quot;, link, false)
	req.Send()
	text := req.responseText
	document := ComObjCreate(&quot;HTMLfile&quot;)
	document.Open()
	document.Close()
	document.body.innerHTML := text
	timeis := document.getElementById(&quot;twd&quot;).innerText
;	GuiControlGet, timenowis, Name, ahk_id%timenowhwnd%
	GuiControl,,Timenow, 1
	If Errorlevel = 1
	{
		Msgbox, Oshibka
	}
}
Return
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (timk50)]]></author>
			<pubDate>Tue, 06 Mar 2018 16:43:04 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=123959#p123959</guid>
		</item>
	</channel>
</rss>
