<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Вопрос по SetWinDelay]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=8489&amp;type=atom" />
	<updated>2013-07-25T00:11:39Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=8489</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Вопрос по SetWinDelay]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=74031#p74031" />
			<content type="html"><![CDATA[<p>up</p>]]></content>
			<author>
				<name><![CDATA[Hydrogenium]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30160</uri>
			</author>
			<updated>2013-07-25T00:11:39Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=74031#p74031</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Вопрос по SetWinDelay]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=73890#p73890" />
			<content type="html"><![CDATA[<div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><div class="codebox"><pre><code>
ActiveWin:
    
    if !flagActiveWin
        Return
    
    SetWinDelay, 0
    
    SetTimer, ActiveWin, Off
    
    if CheckWin(IDWin)
        if !WinActive(&quot;ahk_id&quot; IDWin)
            WinActivate, ahk_id %IDWin% 

    SetTimer, ActiveWin, On
Return


</code></pre></div></div></div><p>Где целесообразнее ставить SetWinDelay, 0<br />В коде юзеров видел, что они ставят в начале функции или в самом верху ahk скрипта.<br />Может логичнее ставить перед WinActivate ?</p><p>Да и зачем SetWinDelay, когда есть sleep - непонятно ?</p>]]></content>
			<author>
				<name><![CDATA[Hydrogenium]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30160</uri>
			</author>
			<updated>2013-07-19T03:57:10Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=73890#p73890</id>
		</entry>
</feed>
