<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; GTA 5 - не работают скрипты]]></title>
		<link>http://forum.script-coding.com/viewtopic.php?id=11863</link>
		<atom:link href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=11863&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «GTA 5 - не работают скрипты».]]></description>
		<lastBuildDate>Sun, 31 Jul 2016 19:23:14 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: GTA 5 - не работают скрипты]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=106501#p106501</link>
			<description><![CDATA[<p><strong>Indomito</strong><br />Indomito<br /><em>#UseHook</em> - и правда оказался лишним<br /><em>KeyWait, % A_ThisHotkey</em> - тоже не понадобился<br />Пропись <em>Up &amp; Down</em> для каждой эмуляции оказалась полезной, тк если просто писать <em>Send {BackSpace}</em>, происходят частые осечки.</p><p>Итого получилась вот такая простетская байда для вызова такси одной кнопкой:<br /></p><div class="codebox"><pre><code>~^F9::ExitApp
~F8::Suspend

#IfWinActive, Grand Theft Auto V

4:: ;taxi call
	Send {Up Down}{Up Up} ;phone
	sleep 700

	loop, 3
	{
		Send {BackSpace Down}{BackSpace Up} ;cancel
	}
	sleep 500
	
	Send {Up Down}{Up Up} ;phone
	sleep 200
	
	Send {Enter Down}{Enter Up} ;contacts
	sleep 500

	loop, 3
	{
		Send {Down Down}{Down Up} ;choose taxi
		sleep 150
	}

	Send {Enter Down}{Enter Up} ;call
Return</code></pre></div><p>Всем спасибо за ответы!</p>]]></description>
			<author><![CDATA[null@example.com (Kokkolar)]]></author>
			<pubDate>Sun, 31 Jul 2016 19:23:14 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=106501#p106501</guid>
		</item>
		<item>
			<title><![CDATA[Re: GTA 5 - не работают скрипты]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=106500#p106500</link>
			<description><![CDATA[<p><strong>Ядрён</strong><br />Пробовал так:<br /></p><div class="codebox"><pre><code>4::
	DllCall(&quot;keybd_event&quot;, UInt, 0x26, Int, 0, Int, 0x0001, UInt, 50, Int, 0)
	DllCall(&quot;Sleep&quot;, UInt, 100)
	DllCall(&quot;keybd_event&quot;, UInt, 0x26, Int, 0, Int, 0x0002, UInt, 50, Int, 0)
Return</code></pre></div><p>В блокноте работает, в игре полный игнор.</p>]]></description>
			<author><![CDATA[null@example.com (Kokkolar)]]></author>
			<pubDate>Sun, 31 Jul 2016 19:21:17 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=106500#p106500</guid>
		</item>
		<item>
			<title><![CDATA[Re: GTA 5 - не работают скрипты]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=106494#p106494</link>
			<description><![CDATA[<p>Доброго времени суток. Можно попробовать так.</p><div class="codebox"><pre><code>
4:: ;taxi call
	
DllCall(&quot;keybd_event&quot;, UInt, 0x26, Int, 0, Int, 0x0001, UInt, 0, Int, 0) ; нажать клавишу по vk коду NumpadUp

DllCall(&quot;Sleep&quot;, UInt, 100) ; задержка

DllCall(&quot;keybd_event&quot;, UInt, 0x26, Int, 0, Int, 0x0002, UInt, 0, Int, 0) ; отпустить клавишу клавишу по vk коду NumpadUp

DllCall(&quot;keybd_event&quot;, UInt, 0x08, Int, 0, Int, 0x0001, UInt, 0, Int, 0) ; нажать клавишу по vk коду BackSpace

DllCall(&quot;keybd_event&quot;, UInt, 0x08, Int, 0, Int, 0x0002, UInt, 0, Int, 0) ; отпустить клавишу клавишу по vk коду BackSpace

DllCall(&quot;keybd_event&quot;, UInt, 0x08, Int, 0, Int, 0x0001, UInt, 0, Int, 0) ; нажать клавишу по vk коду BackSpace

DllCall(&quot;keybd_event&quot;, UInt, 0x08, Int, 0, Int, 0x0002, UInt, 0, Int, 0) ; отпустить клавишу клавишу по vk коду BackSpace

DllCall(&quot;keybd_event&quot;, UInt, 0x08, Int, 0, Int, 0x0001, UInt, 0, Int, 0) ; нажать клавишу по vk коду BackSpace

DllCall(&quot;keybd_event&quot;, UInt, 0x08, Int, 0, Int, 0x0002, UInt, 0, Int, 0) ; отпустить клавишу клавишу по vk коду BackSpace

DllCall(&quot;keybd_event&quot;, UInt, 0x26, Int, 0, Int, 0x0001, UInt, 0, Int, 0) ; нажать клавишу по vk коду NumpadUp
	
DllCall(&quot;keybd_event&quot;, UInt, 0x26, Int, 0, Int, 0x0002, UInt, 0, Int, 0) ; отпустить клавишу клавишу по vk коду NumpadUp
	
DllCall(&quot;keybd_event&quot;, UInt, 0x0d, Int, 0, Int, 0x0001, UInt, 0, Int, 0) ; нажать клавишу по vk коду Enter
	
DllCall(&quot;keybd_event&quot;, UInt, 0x0d, Int, 0, Int, 0x0002, UInt, 0, Int, 0) ; отпустить клавишу клавишу по vk коду Enter

DllCall(&quot;keybd_event&quot;, UInt, 0x28, Int, 0, Int, 0x0001, UInt, 0, Int, 0) ; нажать клавишу по vk коду NumpadDown

DllCall(&quot;keybd_event&quot;, UInt, 0x28, Int, 0, Int, 0x0002, UInt, 0, Int, 0) ; отпустить клавишу клавишу по vk коду NumpadDown

DllCall(&quot;keybd_event&quot;, UInt, 0x28, Int, 0, Int, 0x0001, UInt, 0, Int, 0) ; нажать клавишу по vk коду NumpadDown

DllCall(&quot;keybd_event&quot;, UInt, 0x28, Int, 0, Int, 0x0002, UInt, 0, Int, 0) ; отпустить клавишу клавишу по vk коду NumpadDown

DllCall(&quot;keybd_event&quot;, UInt, 0x28, Int, 0, Int, 0x0001, UInt, 0, Int, 0) ; нажать клавишу по vk коду NumpadDown

DllCall(&quot;keybd_event&quot;, UInt, 0x28, Int, 0, Int, 0x0002, UInt, 0, Int, 0) ; отпустить клавишу клавишу по vk коду NumpadDown

DllCall(&quot;keybd_event&quot;, UInt, 0x0d, Int, 0, Int, 0x0001, UInt, 0, Int, 0) ; нажать клавишу по vk коду Enter
	
DllCall(&quot;keybd_event&quot;, UInt, 0x0d, Int, 0, Int, 0x0002, UInt, 0, Int, 0) ; отпустить клавишу клавишу по Enter
	
return</code></pre></div><p><strong>Если так не получиться нужно поставить небольшую задержку после каждого нажания.</strong></p><p>В таком ключе.</p><div class="codebox"><pre><code>DllCall(&quot;Sleep&quot;, UInt, 20) ; задержка</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Ядрён)]]></author>
			<pubDate>Sun, 31 Jul 2016 00:44:06 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=106494#p106494</guid>
		</item>
		<item>
			<title><![CDATA[Re: GTA 5 - не работают скрипты]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=106485#p106485</link>
			<description><![CDATA[<p><strong>Kokkolar</strong><br />Попробуй так. </p><div class="codebox"><pre><code>#UseHook, On ;Для надёжности, хотя излишне.

4:: ;taxi call
  Send {Up Down}
    KeyWait, % A_ThisHotkey
  Send {Up Up}
	
  Send {BackSpace Down} ;BackSpace
   KeyWait, % A_ThisHotkey
  Send {BackSpace Up} 

; И т.д. vk-code излишне для не модифицируемых клавиш.
Return

#UseHook, Off</code></pre></div><p> Должно сработать.</p><p>P.S. Возможно требуется задержка, в разных местах кода от 25 до 50 ms.</p>]]></description>
			<author><![CDATA[null@example.com (Indomito)]]></author>
			<pubDate>Sat, 30 Jul 2016 18:35:27 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=106485#p106485</guid>
		</item>
		<item>
			<title><![CDATA[Re: GTA 5 - не работают скрипты]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=106481#p106481</link>
			<description><![CDATA[<p>Первое, поменяй SendInput на обычный Send. Возможно из-за этого.</p>]]></description>
			<author><![CDATA[null@example.com (Igor|Fixes|Armando)]]></author>
			<pubDate>Sat, 30 Jul 2016 16:37:26 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=106481#p106481</guid>
		</item>
		<item>
			<title><![CDATA[GTA 5 - не работают скрипты]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=106466#p106466</link>
			<description><![CDATA[<p>Версия компилятора AHK 1.1.24.00<br />В блокноте скрипт работает.<br />Windows 10. Пробовал запускать от имени администратора.</p><div class="codebox"><pre><code>4:: ;taxi call
	SendInput {vk26 down}
	sleep 100
	SendInput {vk26 up} ;UP
	SendInput {vk08 down}{vk08 up} ;BackSpace
	SendInput {vk08 down}{vk08 up} ;BackSpace
	SendInput {vk08 down}{vk08 up} ;BackSpace
	SendInput {vk26 down}{vk26 up} ;UP
	SendInput {vk0d down}{vk0d up} ;enter
	SendInput {vk28 down}{vk28 up} ;DOWN
	SendInput {vk28 down}{vk28 up} ;DOWN
	SendInput {vk28 down}{vk28 up} ;DOWN
	SendInput {vk0d down}{vk0d up} ;enter
return</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Kokkolar)]]></author>
			<pubDate>Fri, 29 Jul 2016 18:45:08 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=106466#p106466</guid>
		</item>
	</channel>
</rss>
