<?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=14870&amp;type=atom" />
	<updated>2019-08-07T03:57:26Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=14870</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Отправка нажатий клавиш в игру с защитой]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=135331#p135331" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Phazer пишет:</cite><blockquote><p>Я использовал&nbsp; AutohotInterception.&nbsp; <a href="https://github.com/evilC/AutoHotInterception#autohotinterception">https://github.com/evilC/AutoHotInterce … terception</a></p><p>Код выглядит так: </p><div class="codebox"><pre><code>#SingleInstance force
#Persistent
#include Lib\AutoHotInterception.ahk
AHI := new AutoHotInterception()
id1 := AHI.GetKeyboardId( 0xVIDВашей клавиатуры ,  0xPIDВашей клавиатуры , 1)
return

1::
While GetKeyState(&quot;1&quot;,&quot;P&quot;){
AHI.SendKeyEvent(idВашей клавиатуры, GetKeySC(&quot;2&quot;), 1)
sleep, 500
If !(GetKeyState(&quot;1&quot;,&quot;P&quot;))
Break
AHI.SendKeyEvent(idВашей клавиатуры, GetKeySC(&quot;3&quot;), 1)
sleep, 500
If !(GetKeyState(&quot;1&quot;,&quot;P&quot;))
Break
AHI.SendKeyEvent(idВашей клавиатуры, GetKeySC(&quot;4&quot;), 1)
sleep, 500
If !(GetKeyState(&quot;1&quot;,&quot;P&quot;))
Break
AHI.SendKeyEvent(idВашей клавиатуры, GetKeySC(&quot;5&quot;), 1)
sleep, 1000
If !(GetKeyState(&quot;1&quot;,&quot;P&quot;))
Break
AHI.SendKeyEvent(idВашей клавиатуры, GetKeySC(&quot;6&quot;), 1)
sleep, 1000
If !(GetKeyState(&quot;1&quot;,&quot;P&quot;))
Break
}
return</code></pre></div></blockquote></div><p>Я овощ в этом всем, но как это все запустить чтобы все работало стабильно?.. Попросту понять не могу. Что, да куда надо копировать?</p>]]></content>
			<author>
				<name><![CDATA[X_vorost]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=40325</uri>
			</author>
			<updated>2019-08-07T03:57:26Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=135331#p135331</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Отправка нажатий клавиш в игру с защитой]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=135223#p135223" />
			<content type="html"><![CDATA[<p>Я использовал&nbsp; AutohotInterception.&nbsp; <a href="https://github.com/evilC/AutoHotInterception#autohotinterception">https://github.com/evilC/AutoHotInterce … terception</a></p><p>Код выглядит так: </p><div class="codebox"><pre><code>#SingleInstance force
#Persistent
#include Lib\AutoHotInterception.ahk
AHI := new AutoHotInterception()
id1 := AHI.GetKeyboardId( 0xVIDВашей клавиатуры ,  0xPIDВашей клавиатуры , 1)
return

1::
While GetKeyState(&quot;1&quot;,&quot;P&quot;){
AHI.SendKeyEvent(idВашей клавиатуры, GetKeySC(&quot;2&quot;), 1)
sleep, 500
If !(GetKeyState(&quot;1&quot;,&quot;P&quot;))
Break
AHI.SendKeyEvent(idВашей клавиатуры, GetKeySC(&quot;3&quot;), 1)
sleep, 500
If !(GetKeyState(&quot;1&quot;,&quot;P&quot;))
Break
AHI.SendKeyEvent(idВашей клавиатуры, GetKeySC(&quot;4&quot;), 1)
sleep, 500
If !(GetKeyState(&quot;1&quot;,&quot;P&quot;))
Break
AHI.SendKeyEvent(idВашей клавиатуры, GetKeySC(&quot;5&quot;), 1)
sleep, 1000
If !(GetKeyState(&quot;1&quot;,&quot;P&quot;))
Break
AHI.SendKeyEvent(idВашей клавиатуры, GetKeySC(&quot;6&quot;), 1)
sleep, 1000
If !(GetKeyState(&quot;1&quot;,&quot;P&quot;))
Break
}
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Phazer]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=40279</uri>
			</author>
			<updated>2019-08-04T08:10:00Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=135223#p135223</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Отправка нажатий клавиш в игру с защитой]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=135217#p135217" />
			<content type="html"><![CDATA[<p>Ну так выложите код, ради таких же спрашивающих как и вы.<br />Если поиск выведет их на эту тему, вашу радость они разделить не смогут.</p>]]></content>
			<author>
				<name><![CDATA[stealzy]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=31937</uri>
			</author>
			<updated>2019-08-03T13:58:23Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=135217#p135217</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Отправка нажатий клавиш в игру с защитой]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=135176#p135176" />
			<content type="html"><![CDATA[<p>Всем большое&nbsp; спасибо я разобрался). Это действительно работает,удалось обойти защиту!И не так уж это и сложно оказалось.</p>]]></content>
			<author>
				<name><![CDATA[Phazer]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=40279</uri>
			</author>
			<updated>2019-08-02T08:53:52Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=135176#p135176</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Отправка нажатий клавиш в игру с защитой]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=135119#p135119" />
			<content type="html"><![CDATA[<p>В общем я так понял с одним ahk тут не получится. Помогите разобраться с низкоуровневой эмуляцией. WinRing0 не подходит,&nbsp; так как клавиатура&nbsp; usb. Class_DD ведет на ссылку сайта с иероглифами, который бесконечно что-то грузит и ничего не скачивается, остается только AutoHotInterception, но я не могу разобраться как с ним работать, может кто-то подсказать как это сделать? Я перерыл уже весь google, но никакой информации. Как его привязать к ahk и как написать аналогичный скрипт как в шапке? Этот скрипт при удерживании клавиши, воспроизводит последовательность других клавиш, когда отпускаю он прерывается.</p>]]></content>
			<author>
				<name><![CDATA[Phazer]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=40279</uri>
			</author>
			<updated>2019-07-30T03:46:14Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=135119#p135119</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Отправка нажатий клавиш в игру с защитой]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=135081#p135081" />
			<content type="html"><![CDATA[<p>Попробовал SendMode Play, какой-то результат есть, если до этого совсем не работал, то сейчас скрипт работает, но вот только в чате игры, причем в чат даже пишутся кнопки от F1&nbsp; до F12, но как теперь сделать так, чтобы они нажимались нормально?</p>]]></content>
			<author>
				<name><![CDATA[Phazer]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=40279</uri>
			</author>
			<updated>2019-07-28T04:08:53Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=135081#p135081</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Отправка нажатий клавиш в игру с защитой]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=135077#p135077" />
			<content type="html"><![CDATA[<p><a href="http://%20http://forum.script-coding.com/viewtopic.php?pid=123063#p123063"> http://forum.script-coding.com/viewtop … 63#p123063</a></p>]]></content>
			<author>
				<name><![CDATA[stealzy]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=31937</uri>
			</author>
			<updated>2019-07-27T19:27:15Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=135077#p135077</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Отправка нажатий клавиш в игру с защитой]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=135072#p135072" />
			<content type="html"><![CDATA[<p>Кто-то поможет?</p>]]></content>
			<author>
				<name><![CDATA[Phazer]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=40279</uri>
			</author>
			<updated>2019-07-27T14:38:16Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=135072#p135072</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Отправка нажатий клавиш в игру с защитой]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=135062#p135062" />
			<content type="html"><![CDATA[<p><span style="color: #008000">Недостатки были исправлены, обсуждение может быть продолжено.</span></p>]]></content>
			<author>
				<name><![CDATA[belyankin12]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34408</uri>
			</author>
			<updated>2019-07-26T17:55:29Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=135062#p135062</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Отправка нажатий клавиш в игру с защитой]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=135052#p135052" />
			<content type="html"><![CDATA[<p>Исправил</p>]]></content>
			<author>
				<name><![CDATA[Phazer]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=40279</uri>
			</author>
			<updated>2019-07-26T15:36:41Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=135052#p135052</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Отправка нажатий клавиш в игру с защитой]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=135034#p135034" />
			<content type="html"><![CDATA[<p><span style="color: #008000">Все ещё не верно. В заголовке не указан префикс скриптового языка. Посмотрите на заголовки других тем - что их объединяет?</span></p>]]></content>
			<author>
				<name><![CDATA[belyankin12]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34408</uri>
			</author>
			<updated>2019-07-26T06:25:21Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=135034#p135034</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Отправка нажатий клавиш в игру с защитой]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=135031#p135031" />
			<content type="html"><![CDATA[<p>Заголовок отредактирован.</p>]]></content>
			<author>
				<name><![CDATA[Phazer]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=40279</uri>
			</author>
			<updated>2019-07-25T23:34:23Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=135031#p135031</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Отправка нажатий клавиш в игру с защитой]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=134991#p134991" />
			<content type="html"><![CDATA[<p><strong>Phazer</strong><br /><span style="color: #008000">1. Ознакомьтесь с <a href="http://forum.script-coding.com/viewtopic.php?id=5421">правилами составления заголовков</a>, а после ознакомления исправьте согласно правилам.</span><br /><span style="color: #008000">Кроме того я рекомендую вам ознакомится с <a href="http://forum.script-coding.com/rules.html">полной версией правил форума</a>, либо с выпиской <a href="http://forum.script-coding.com/misc.php?action=rules">важнейших правил поведения на форуме</a> чтобы избежать подобных ошибок в будущем.</span></p><p><span style="color: #FF0000">Обсуждение в теме временно прекращено.</span> <br />Пока оформление не будет приведено в порядок, ответы будут удаляться. Если в течение трех суток тема не будет оформлена должным образом, то будет удалена.</p>]]></content>
			<author>
				<name><![CDATA[belyankin12]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34408</uri>
			</author>
			<updated>2019-07-21T20:48:27Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=134991#p134991</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Отправка нажатий клавиш в игру с защитой]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=134979#p134979" />
			<content type="html"><![CDATA[<p>Приветствую. Есть игра, но в ней не работает ahk, в окне игры при нажатии запрограммированной клавиши просто ничего не происходит, хотя в блокноте скрипт работает. Думаю там есть защита от макросов. Пробовал много чего, запуск от администратора, режим совместимости, отключение uac, все тщетно. Причем у меня есть клавиатура с драйверами для макросов, она в игре работает, значит теоретически и ahk должен работать, но проблема в том что у нее очень ограниченный функционал. Можно ли каким-то образом настроить скрипт так, чтобы защита на него&nbsp; не срабатывала?</p><p>Для примера мой скрипт :</p><div class="codebox"><pre><code>1::
While GetKeyState(&quot;1&quot;,&quot;P&quot;) {
Send, {2 down}
Sleep, 50
Send, {2 up}
Sleep, 500
If !(GetKeyState(&quot;1&quot;,&quot;P&quot;))
Break
Send 3
Sleep, 500
If !(GetKeyState(&quot;1&quot;,&quot;P&quot;))
Break
Send 4
Sleep, 500
If !(GetKeyState(&quot;1&quot;,&quot;P&quot;))
Break
Send 5
Sleep, 500
If !(GetKeyState(&quot;1&quot;,&quot;P&quot;))
Break
Send 6
Sleep, 500
If !(GetKeyState(&quot;1&quot;,&quot;P&quot;))
Break
}
Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Phazer]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=40279</uri>
			</author>
			<updated>2019-07-20T13:10:31Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=134979#p134979</id>
		</entry>
</feed>
