<?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=12967&amp;type=atom" />
	<updated>2017-09-02T19:28:18Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=12967</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получить хэндл последнего созданного контрола окна]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=119110#p119110" />
			<content type="html"><![CDATA[<p>Спасибо, значит я был на половине пути. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p><p>Смотрел на GW_HWNDLAST, оказалось что надо &quot;скормить&quot; ему любой дочерний окна.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2017-09-02T19:28:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=119110#p119110</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получить хэндл последнего созданного контрола окна]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=119098#p119098" />
			<content type="html"><![CDATA[<p>Наверное только так:<br /></p><div class="codebox"><pre><code>SetFormat, IntegerFast, h
Gui, +HWNDhGui
Gui, Add, Text, HwndhFirstHwnd, 1
Gui, Add, Text, , 2
Gui, Add, Text, HwndhLastHwnd, 3 

hFirstHwnd := DllCall(&quot;GetWindow&quot;, &quot;Ptr&quot;, hGui, &quot;Uint&quot;, GW_CHILD := 5)+0
MsgBox % DllCall(&quot;GetWindow&quot;, &quot;Ptr&quot;, hFirstHwnd, &quot;Uint&quot;, GW_HWNDLAST := 1)+0 &quot;`n&quot; hLastHwnd</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2017-09-02T02:56:57Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=119098#p119098</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получить хэндл последнего созданного контрола окна]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=119093#p119093" />
			<content type="html"><![CDATA[<p>Для первого контрола такое есть.<br /></p><div class="codebox"><pre><code>
SetFormat, IntegerFast, h
Gui, +HWNDhGui
Gui, Add, Text, HwndhFirstHwnd, 1
Gui, Add, Text, , 2
Gui, Add, Text, HwndhLastHwnd, 3 

MsgBox % DllCall(&quot;GetWindow&quot;, &quot;Ptr&quot;, hGui, &quot;Uint&quot;, GW_CHILD := 5)+0 &quot;`n&quot; hFirstHwnd
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2017-09-01T19:52:40Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=119093#p119093</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получить хэндл последнего созданного контрола окна]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=119079#p119079" />
			<content type="html"><![CDATA[<p>Так хочется.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2017-09-01T18:19:35Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=119079#p119079</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получить хэндл последнего созданного контрола окна]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=119076#p119076" />
			<content type="html"><![CDATA[<p>В смысле? Окно своё, GUI то есть, или сторонней программы? Если своё GUI, то что ещё нужно для счастья?</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2017-09-01T18:17:09Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=119076#p119076</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получить хэндл последнего созданного контрола окна]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=119075#p119075" />
			<content type="html"><![CDATA[<p>Это и в примере есть, надо то без переменных контрола.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2017-09-01T18:15:05Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=119075#p119075</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получить хэндл последнего созданного контрола окна]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=119073#p119073" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>GUI, Add, Button, w100 h100 +HWNDhButton
GUI, Show
MsgBox, % hButton</code></pre></div>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2017-09-01T18:13:45Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=119073#p119073</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Получить хэндл последнего созданного контрола окна]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=119066#p119066" />
			<content type="html"><![CDATA[<p>Как отдельно (сразу) получить хэндл последнего созданного контрола окна, не получая весь список, и не перебирая все контролы.<br /></p><div class="codebox"><pre><code>
Gui, +HWNDhGui
Gui, Add, Text, , 1
Gui, Add, Text, , 2
Gui, Add, Text, HwndhLastHwnd, 3 

DetectHiddenWindows, On 
WinGet, List, ControlListHwnd, AHK_id %hGui%

MsgBox % RegExReplace(List, &quot;.*\R(.*?)$&quot;, &quot;$1&quot;) &quot;`n&quot; hLastHwnd
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2017-09-01T17:36:46Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=119066#p119066</id>
		</entry>
</feed>
