<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Использование GuiControl]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=13515&amp;type=atom" />
	<updated>2018-03-06T17:42:40Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=13515</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Использование GuiControl]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=123961#p123961" />
			<content type="html"><![CDATA[<p>Всё, разобрался, в первую часть к gui, add добавил timeis:, и его же в guicontrol<br /></p><div class="codebox"><pre><code>Gui, timeis:Add
GuiControl, timeis:,</code></pre></div><p>Я тормоз...</p>]]></content>
			<author>
				<name><![CDATA[timk50]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39092</uri>
			</author>
			<updated>2018-03-06T17:42:40Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=123961#p123961</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Использование GuiControl]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=123959#p123959" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[timk50]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39092</uri>
			</author>
			<updated>2018-03-06T16:43:04Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=123959#p123959</id>
		</entry>
</feed>
