<?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="http://forum.script-coding.com/extern.php?action=feed&amp;tid=16668&amp;type=atom" />
	<updated>2021-10-19T01:09:45Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=16668</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Привязка кода к окну]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=150130#p150130" />
			<content type="html"><![CDATA[<p><strong>Leonardod</strong>, если вы хотите отправлять нажатия клавиш в неактивное окно, то почитайте про <a href="https://ahk-wiki.ru/controlclick">ControlClick</a> и <a href="https://ahk-wiki.ru/controlsend">ControlSend</a>. Но не факт, что эти команды будут работать с окнами игр.</p>]]></content>
			<author>
				<name><![CDATA[Taveron]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=41949</uri>
			</author>
			<updated>2021-10-19T01:09:45Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=150130#p150130</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Привязка кода к окну]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=150129#p150129" />
			<content type="html"><![CDATA[<p>Я имел ввиду, что допустим даже если я сделаю окно не активным (но оставлю открытым, не свернутым) - скрипт сможет продолжить работу в самом приложении</p>]]></content>
			<author>
				<name><![CDATA[Leonardod]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=42061</uri>
			</author>
			<updated>2021-10-19T00:05:54Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=150129#p150129</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Привязка кода к окну]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=150127#p150127" />
			<content type="html"><![CDATA[<p><strong>Leonardod</strong>, что вы подразумеваете под словом &quot;привязать&quot;?</p>]]></content>
			<author>
				<name><![CDATA[Taveron]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=41949</uri>
			</author>
			<updated>2021-10-18T22:16:40Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=150127#p150127</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Привязка кода к окну]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=150126#p150126" />
			<content type="html"><![CDATA[<p>Доброго времени суток. Я не могу понять как можно привязать мой скрипт к конкретному окну. Пробовал через WinTitle, IfWinActive, IfWinExist. Получается либо криво, либо вообще не получается.</p><div class="codebox"><pre><code>
o::
SoundBeep, 250, 200

while true
{

    MouseMove, 0, - A_ScreenHeight, 1, R
    Sleep, 100

    Send, {w down}
    sleep, 64
    Send, {w up}

    MouseMove, 0 , 0, 0, R
    Sleep, 500

    MouseMove, 0, 1000, 0, R

    Click
    Send, s
    Sleep 15
    continue

}
return
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Leonardod]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=42061</uri>
			</author>
			<updated>2021-10-18T21:17:57Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=150126#p150126</id>
		</entry>
</feed>
