<?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=18214&amp;type=atom" />
	<updated>2024-06-21T14:14:45Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=18214</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Работа с не активным окном]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=161158#p161158" />
			<content type="html"><![CDATA[<p><strong>Wh1le</strong><br /><a href="https://ahk-wiki.ru/controlsend">https://ahk-wiki.ru/controlsend</a> - нажатие клавиш<br /><a href="https://ahk-wiki.ru/controlclick">https://ahk-wiki.ru/controlclick</a> - клики мыши<br />Пример нажатия клавиши<br /></p><div class="codebox"><pre><code>ControlSend,, {s down},  ahk_exe GTA5.exe</code></pre></div><p>Пример клика<br /></p><div class="codebox"><pre><code>ControlClick, x1848 y676, GTA5.exe</code></pre></div>]]></content>
			<author>
				<name><![CDATA[EZICTHRONE]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=43805</uri>
			</author>
			<updated>2024-06-21T14:14:45Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=161158#p161158</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Работа с не активным окном]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=161057#p161057" />
			<content type="html"><![CDATA[<p><strong>Wh1le</strong><br />Если есть желание разобраться, обратите внимание на команды ControlSend/ControlClick. Если нет, добро пожаловать в Коммерческий раздел.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2024-06-02T12:26:09Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=161057#p161057</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Работа с не активным окном]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=161056#p161056" />
			<content type="html"><![CDATA[<p><strong>Wh1le</strong> Никогда не поздно начать его изучать, АХК лёгкий как 5 копеек, по сравнению с некоторыми языками программирования.</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2024-06-02T12:10:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=161056#p161056</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Работа с не активным окном]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=161055#p161055" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>__Михаил__ пишет:</cite><blockquote><p>В поиске по форуму искали?</p></blockquote></div><p> Искал но, там будет понятно для тех, кто знаком с этим. А я вообще не понимаю в этом.</p>]]></content>
			<author>
				<name><![CDATA[Wh1le]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=43763</uri>
			</author>
			<updated>2024-06-02T11:48:34Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=161055#p161055</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Работа с не активным окном]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=161054#p161054" />
			<content type="html"><![CDATA[<p>В поиске по форуму искали?</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2024-06-02T11:47:13Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=161054#p161054</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Работа с не активным окном]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=161053#p161053" />
			<content type="html"><![CDATA[<p>Добрый день. Есть скрипт, который замечательно работает в открытом(активном) окне.</p><div class="codebox"><pre><code>
F6::
RouletteLoop()
return

RouletteLoop() {
    SetTimer, RunRoulette, 1
    Return
    
    RunRoulette:
        Send, {Up}
        Sleep 1900
		Click 1848, 676
		Sleep 1500
		Click 1748, 1003
		Sleep 1500
		Send, {BS}
		Sleep 1500
        Click 1839, 1009
        Sleep 1500
        Click 956, 446
        Sleep 1500
        Click 629, 496
        Sleep 1500
        Click 960, 906
        Sleep 31000
        Send, {Esc}
        SetTimer, RunRoulette, 14520000
    Return
}

F8::ExitApp
</code></pre></div><p>Но нужно, чтобы он работал в фоновом режиме, то есть в неактивном окне. Пока я, например смотрю видео на Youtube или играю в игру.<br />Название окна(процесса), где должен работать скрипт &quot;GTA5.exe&quot;.</p>]]></content>
			<author>
				<name><![CDATA[Wh1le]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=43763</uri>
			</author>
			<updated>2024-06-02T11:37:35Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=161053#p161053</id>
		</entry>
</feed>
