<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; Как можно привязать ahk к Gta 5 или RAGE Multiplayer]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=16355&amp;type=atom" />
	<updated>2021-05-16T12:47:08Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=16355</id>
		<entry>
			<title type="html"><![CDATA[Re: Как можно привязать ahk к Gta 5 или RAGE Multiplayer]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=147912#p147912" />
			<content type="html"><![CDATA[<p>&#039;ControlClick&#039; капризная команда и не обязана работать везде где мы хотим.<br />Обычные &#039;Send&#039; команды будут работать (где нет защиты античита), но только когда окно игры не в полноэкранном режиме.</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2021-05-16T12:47:08Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=147912#p147912</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как можно привязать ahk к Gta 5 или RAGE Multiplayer]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=147906#p147906" />
			<content type="html"><![CDATA[<p><strong>__Михаил__</strong><br />Не работает! Не знаю что делать.</p>]]></content>
			<author>
				<name><![CDATA[dimkacum]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=41727</uri>
			</author>
			<updated>2021-05-16T08:25:35Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=147906#p147906</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как можно привязать ahk к Gta 5 или RAGE Multiplayer]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=147903#p147903" />
			<content type="html"><![CDATA[<p>Пример:</p><div class="codebox"><pre><code>#IfWinActive, ahk_exe GTA5.exe

NumPad1::
ControlClick, x1075 y290, ahk_id 0xc08e0,, RIGHT
Sleep, 175
ControlClick, x1157 y286, ahk_id 0xc08e0,, RIGHT
Sleep, 175
ControlClick, x810 y575, ahk_id 0xc08e0,, RIGHT
Sleep, 175
ControlClick, x810 y676, ahk_id 0xc08e0,, LEFT
Sleep, 5150
Return

#If
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2021-05-16T01:08:21Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=147903#p147903</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как можно привязать ahk к Gta 5 или RAGE Multiplayer]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=147897#p147897" />
			<content type="html"><![CDATA[<p><strong>__Михаил__</strong><br />Честно говоря я уже запутался, написал даже такой код не знаю что делать вроде все перепробовал. Ниче не работает. Вот весь код. Помогите чем сможете( я запутался<br />Фото прикрепил слева в окне оно показывается как RAGE Multiplayer<br />А в диспетчере как Grand Theft Auto V и если развернуть то увидим<br />cef_process(развернуть его получается cef_process.exe),<br />RAGE Multiplayer(развернуть его получается GTA5.exe)<br />Social Club UI ван не понадобится!<br />Что смог то прикрепил надеюсь на помощь.<br />У меня такое чувство что я просто перестаю это понимать(<br />Если будете объяснять распишите поподробнее. Спасибо!</p><div class="codebox"><pre><code>DetectHiddenWindows, On

#If WinExist(&quot;ahk_class RAGE Multiplayer ahk_exe cef_process.exe&quot;)
F6:: ExitApp
F5::pause
Pause::Pause
NumPad1::
	While WinExist(&quot;ahk_class RAGE Multiplayer V ahk_exe cef_process.exe&quot;)
Loop, 1
{
    ControlClick, x1075 y290, ahk_id 0xc08e0,, RIGHT
        sleep, 175
    ControlClick, x1157 y286, ahk_id 0xc08e0,, RIGHT
        sleep, 175
    ControlClick, x810 y575, ahk_id 0xc08e0,, RIGHT
        sleep, 175
    ControlClick, x810 y676, ahk_id 0xc08e0,, LEFT
        sleep, 5150
}
SoundBeep, 
sleep 100
#If</code></pre></div>]]></content>
			<author>
				<name><![CDATA[dimkacum]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=41727</uri>
			</author>
			<updated>2021-05-15T23:49:45Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=147897#p147897</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как можно привязать ahk к Gta 5 или RAGE Multiplayer]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=147878#p147878" />
			<content type="html"><![CDATA[<p>А зачем это нужно? В коде нет привязок к каким либо окнам - толку 0.</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2021-05-15T18:11:43Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=147878#p147878</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как можно привязать ahk к Gta 5 или RAGE Multiplayer]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=147877#p147877" />
			<content type="html"><![CDATA[<p><strong>__Михаил__</strong><br />IfWinNotActive ето если окно не активное</p>]]></content>
			<author>
				<name><![CDATA[dimkacum]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=41727</uri>
			</author>
			<updated>2021-05-15T17:53:00Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=147877#p147877</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как можно привязать ahk к Gta 5 или RAGE Multiplayer]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=147871#p147871" />
			<content type="html"><![CDATA[<p>В коде используется &#039;IfWinNotActive&#039; - для чего она? Откуда взялась?</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2021-05-15T17:29:14Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=147871#p147871</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как можно привязать ahk к Gta 5 или RAGE Multiplayer]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=147870#p147870" />
			<content type="html"><![CDATA[<p>Если перейти по ссылке что я оставил выше, можно найти примеры использования.<br />В чём проблема заменить привязку на своё окно?</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2021-05-15T17:25:54Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=147870#p147870</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как можно привязать ahk к Gta 5 или RAGE Multiplayer]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=147868#p147868" />
			<content type="html"><![CDATA[<p><strong>__Михаил__</strong><br />Напиши пожалуйста что это а то я только начинаю писать ахк и толком еше ниче не понимаю. Буду очень благодарен если исправишь мои ошибки. Спасибо!<br />Если какие-то нужны файлы могу докинуть!<br /><a href="https://forum.script-coding.com/viewtopic.php?id=16355">https://forum.script-coding.com/viewtopic.php?id=16355</a></p>]]></content>
			<author>
				<name><![CDATA[dimkacum]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=41727</uri>
			</author>
			<updated>2021-05-15T17:00:27Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=147868#p147868</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как можно привязать ahk к Gta 5 или RAGE Multiplayer]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=147864#p147864" />
			<content type="html"><![CDATA[<p>Тут всё расписано <a href="http://www.script-coding.com/AutoHotkey/IfWinActive.html">IfWinActive</a>.</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2021-05-15T16:48:33Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=147864#p147864</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как можно привязать ahk к Gta 5 или RAGE Multiplayer]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=147863#p147863" />
			<content type="html"><![CDATA[<p>Директивы нужно правильно использовать, конечно не будет эффекта.</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2021-05-15T16:45:15Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=147863#p147863</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Как можно привязать ahk к Gta 5 или RAGE Multiplayer]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=147862#p147862" />
			<content type="html"><![CDATA[<p>Искал на форумах, пробовал привязать, но ничего не помогло. В режиме оконный без рамки гта не морозится, вроде должно работать, но ничего не происходит. <br />Сам по себе он работает когда ты в окне гта но когда ты сворачиваешься в браузер например он в браузере работает по тех же координатах.<br /></p><div class="codebox"><pre><code>
WinGet, roid, List, Grand Theft Auto V
sc4D::
IfWinNotActive, Grand Theft Auto V
F6:: ExitApp
F5::pause
Pause::Pause
NumPad1::
Loop, 1
{
    ControlClick,{Click right 1075, 290}
        sleep, 175
    Send,{Click right 1157, 286}
        sleep, 175
    Send,{Click right 810, 575}
        sleep, 175
    Send,{Click, 810, 676}
        sleep, 5150
}
SoundBeep, 
sleep 1000

</code></pre></div>]]></content>
			<author>
				<name><![CDATA[dimkacum]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=41727</uri>
			</author>
			<updated>2021-05-15T15:46:56Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=147862#p147862</id>
		</entry>
</feed>
