<?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=8758&amp;type=atom" />
	<updated>2013-10-11T19:11:47Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=8758</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Отслеживание ресайзинга окна.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75965#p75965" />
			<content type="html"><![CDATA[<p>Спасибо. Пока ничего не понял, но попробую разобраться как это приспособить в виде проверки внутри подпрограммы таймера.</p>]]></content>
			<author>
				<name><![CDATA[Next]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=28517</uri>
			</author>
			<updated>2013-10-11T19:11:47Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75965#p75965</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Отслеживание ресайзинга окна.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75964#p75964" />
			<content type="html"><![CDATA[<p>Так можно получать события начала и конца перетаскивания или ресайза нужного окна:<br /></p><div class="codebox"><pre><code>
SetWinEventHook(0x000A, 0x000B, 0, RegisterCallback(&quot;MyFunc&quot;, &quot;F&quot;),0,0,0)
Thwnd := WinExist(&quot;ahk_class Notepad&quot;)
return

MyFunc(hWinEventHook, event, hwnd) {
    Global
    If (hwnd = Thwnd)
    {
        If (event = 0x000A)
            ToolTip EVENT_SYSTEM_MOVESIZESTART
        Else If (event = 0x000B)
            ToolTip EVENT_SYSTEM_MOVESIZEEND
    }
}

SetWinEventHook(eventMin, eventMax, hmodWinEventProc, lpfnWinEventProc, idProcess, idThread, dwFlags)
{
   return DllCall(&quot;SetWinEventHook&quot; , UInt, eventMin, UInt, eventMax
                                    , Ptr, hmodWinEventProc, Ptr, lpfnWinEventProc
                                    , UInt, idProcess, UInt, idThread
                                    , UInt, dwFlags, Ptr)
}
</code></pre></div><p>Для постоянного вызова во время действия можно использовать&nbsp; </p><div class="codebox"><pre><code>EVENT_OBJECT_LOCATIONCHANGE = 0x800B</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2013-10-11T17:34:39Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75964#p75964</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Отслеживание ресайзинга окна.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75960#p75960" />
			<content type="html"><![CDATA[<p>Нет, с другим.</p>]]></content>
			<author>
				<name><![CDATA[Next]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=28517</uri>
			</author>
			<updated>2013-10-11T15:14:05Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75960#p75960</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Отслеживание ресайзинга окна.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75955#p75955" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>Есть скрипт работающий с окном.</p></blockquote></div><p>Со своим окном?</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2013-10-11T13:11:01Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75955#p75955</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Отслеживание ресайзинга окна.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75954#p75954" />
			<content type="html"><![CDATA[<p>Ловить сообщение WM_SIZE, видимо. Обработчик для сообщений назначается функцией OnMessage.</p>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2013-10-11T12:20:27Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75954#p75954</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Отслеживание ресайзинга окна.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75952#p75952" />
			<content type="html"><![CDATA[<p><span style="color: #008800"><strong>Next</strong>, ознакомьтесь с <a href="http://forum.script-coding.com/viewtopic.php?id=6148">этой</a> темой, отредактируйте заголовок.</span></p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2013-10-11T11:36:14Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75952#p75952</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Отслеживание ресайзинга окна.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75950#p75950" />
			<content type="html"><![CDATA[<p>Есть скрипт работающий с окном. В момент изменения размера окна, некоторые функции, запускаемые по таймеру, работают некорректно.&nbsp; Можно как-то отследить процесс ресайзинга окна, чтобы сразу выходить из подпрограммы таймера?&nbsp; Отслеживание изменения размера окна через WinGetPos, конечно же, не подходит.</p><p> Может курсор как-то проверять? Или есть более простые и надёжные методы?</p>]]></content>
			<author>
				<name><![CDATA[Next]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=28517</uri>
			</author>
			<updated>2013-10-11T11:19:32Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75950#p75950</id>
		</entry>
</feed>
