<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; [DS3] Как заставить работать AHK с данной игрой?]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=12873&amp;type=atom" />
	<updated>2017-12-14T06:06:11Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=12873</id>
		<entry>
			<title type="html"><![CDATA[Re: [DS3] Как заставить работать AHK с данной игрой?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=122279#p122279" />
			<content type="html"><![CDATA[<p>В общем, все работает:<br /></p><div class="codebox"><pre><code>$1::
DD._key(&quot;Right&quot;, &quot;Down&quot;) 
sleep, 800
DD._key(&quot;Right&quot;, &quot;Up&quot;) 
sleep 800
DD._key(&quot;Right&quot;, &quot;Down&quot;) 
sleep, 800
DD._key(&quot;Right&quot;, &quot;Up&quot;) 
sleep 800
DD._key(&quot;Right&quot;, &quot;Down&quot;) 
sleep, 800
DD._key(&quot;Right&quot;, &quot;Up&quot;) 
sleep 800
return
</code></pre></div><div class="quotebox"><cite>powercat пишет:</cite><blockquote><p>Никто не знает, как можно пофиксить Class_DD ?</p></blockquote></div><p>Ошибку Class_DD выдает, если нет подключения к интернету.</p>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2017-12-14T06:06:11Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=122279#p122279</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [DS3] Как заставить работать AHK с данной игрой?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=118127#p118127" />
			<content type="html"><![CDATA[<p>А почему у вас Critical не стоит?<br />И sleep в функцию вставляли из 25 поста?<br />Если да, то не знаю в чем может быть причина.<br />Единственный вариант - писать автору библиотеки с конкретными примерами и играми.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2017-08-11T09:07:16Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=118127#p118127</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [DS3] Как заставить работать AHK с данной игрой?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=118126#p118126" />
			<content type="html"><![CDATA[<p>Я имею в виду, что-то типо этого:<br /></p><div class="codebox"><pre><code>$1::
DD._key_press(&quot;Right&quot;)
sleep, 500
DD._key_press(&quot;Right&quot;)
sleep, 500
DD._key_press(&quot;Right&quot;)
sleep, 500
return</code></pre></div><p>В играх не работает.</p>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2017-08-11T08:59:27Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=118126#p118126</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [DS3] Как заставить работать AHK с данной игрой?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=118124#p118124" />
			<content type="html"><![CDATA[<p>У каждой горячей клавиши пропишите Critical.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2017-08-11T08:39:13Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=118124#p118124</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [DS3] Как заставить работать AHK с данной игрой?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=118122#p118122" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Malcev пишет:</cite><blockquote><p>чтобы поток не прерывался</p></blockquote></div><p>Так это если на одно нажатие, а если надо нажать несколько разных клавиш через class_DD, то получается никак?</p>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2017-08-11T07:15:17Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=118122#p118122</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [DS3] Как заставить работать AHK с данной игрой?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=118116#p118116" />
			<content type="html"><![CDATA[<p>Дело явно не в Class_DD, а в дллке.<br />Делайте скрины, отсылайте автору dll.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2017-08-11T01:12:57Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=118116#p118116</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [DS3] Как заставить работать AHK с данной игрой?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=118108#p118108" />
			<content type="html"><![CDATA[<p>Никто не знает, как можно пофиксить Class_DD ? Он почему-то через какое-то время начинает ошибки лепить, так и на китайском еще. Может есть какой-то аналог? WinRing0 не устраивает так как там нет работы с мышкой ( перемещение + нажатие кнопок/колеса ).</p>]]></content>
			<author>
				<name><![CDATA[powercat]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=37884</uri>
			</author>
			<updated>2017-08-10T21:52:12Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=118108#p118108</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [DS3] Как заставить работать AHK с данной игрой?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=118071#p118071" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>svoboden пишет:</cite><blockquote><p>такой вариант работает: &quot;$f2::msgbox&quot;</p></blockquote></div><p>Значит, игра срабатывает на хотки установленные с помощью хука.<br />Если хотите увеличить задержку между нажатием и отжатием, то можно поставить задержку тут:<br /></p><div class="codebox"><pre><code>	; Example: _key_press(&quot;F11&quot;)
	;          _key_press(&quot;Ctrl&quot;, &quot;A&quot;)
	_key_press(sKey*) {
		arr_ddCode := []

		for i, k in sKey {
			arr_ddCode[i] := this.todc( GetKeyVK(k) )

			this.key(arr_ddCode[i], 1) ; Down
sleep 1000
		}


		for i, ddCode in arr_ddCode {
			this.key(ddCode, 2) ; Up
		}
	}</code></pre></div><p>Ну и в самом коде, чтобы поток не прерывался прописать:<br /></p><div class="codebox"><pre><code>f1::
Critical
DD._key_press(&quot;a&quot;)
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2017-08-10T13:16:32Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=118071#p118071</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [DS3] Как заставить работать AHK с данной игрой?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=118069#p118069" />
			<content type="html"><![CDATA[<p>Нет. Хотя, только что проверил, такой вариант работает: &quot;$f2::msgbox&quot;. Но все равно плохо работает Class_DD, только если повторов 100 поставишь, то откликнется. Или это зависит от умений им пользоваться, не знаю.</p>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2017-08-10T12:04:19Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=118069#p118069</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [DS3] Как заставить работать AHK с данной игрой?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=118068#p118068" />
			<content type="html"><![CDATA[<p>То есть в этой игре ни при нажатии f1 ни при нажатии f2 msgbox не появится?<br /></p><div class="codebox"><pre><code>f1::msgbox
$f2::msgbox</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2017-08-10T11:54:28Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=118068#p118068</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [DS3] Как заставить работать AHK с данной игрой?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=118067#p118067" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Malcev пишет:</cite><blockquote><p>В каких именно?</p></blockquote></div><p> Не буду перечислять игры, в которые я играю, смеяться будете. А по вопросу, то в таких играх, как у топикстартера обычные бинды не проходят. В играх, хорошо работает GetKeyState, но после посыл клавиш на низком уровне не всегда срабатывает.<br />P.S. В принципе, я уже дал правильный ответ. Там только задержки надо выставить, и можно еще подключить библиотеку Class_DD в плагин Code Runner.</p>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2017-08-10T11:32:47Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=118067#p118067</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [DS3] Как заставить работать AHK с данной игрой?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=118065#p118065" />
			<content type="html"><![CDATA[<p>В каких именно?<br />У других же в этом подфоруме как-то работает.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2017-08-10T10:58:48Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=118065#p118065</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [DS3] Как заставить работать AHK с данной игрой?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=118064#p118064" />
			<content type="html"><![CDATA[<p><strong>Malcev</strong>, в играх? Нет, конечно.</p>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2017-08-10T10:48:52Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=118064#p118064</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [DS3] Как заставить работать AHK с данной игрой?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=118062#p118062" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>svoboden пишет:</cite><blockquote><p>надо как-то забиндить кнопку на низком уровне в этой библиотеки</p></blockquote></div><p>Зачем? У вас при активном приложении, такой код не реагирует?<br /></p><div class="codebox"><pre><code>f1::msgbox</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2017-08-10T10:31:27Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=118062#p118062</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [DS3] Как заставить работать AHK с данной игрой?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=118035#p118035" />
			<content type="html"><![CDATA[<p>У самого так же, кнопки откликаются, но не всегда, думаю, надо как-то забиндить кнопку на низком уровне в этой библиотеки. Нашел такой способ: &quot;скачиваешь <a href="https://autohotkey.com/boards/viewtopic.php?t=12249">это</a>, и там есть плагин Button to Button, там определишь нажатия на 6+7+8 (у меня в играх работает).</p>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2017-08-09T20:32:39Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=118035#p118035</id>
		</entry>
</feed>
