<?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=15084&amp;type=atom" />
	<updated>2019-12-05T21:54:41Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=15084</id>
		<entry>
			<title type="html"><![CDATA[AHK. Срабатывание клавиш во время задержки]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=136769#p136769" />
			<content type="html"><![CDATA[<p>Уважаемые, доброго времени суток!<br />Есть кусок кода:<br /></p><div class="codebox"><pre><code>sc148:: 
SendMessage, 0x50,, 0x4190419,, A
SendInput {vk75}
Sleep 30
SendInput /me взял в руку рацию{Enter}
Sleep 4500
SendInput {vk75}
Sleep 30
SendInput /me говорит в рацию{Enter}
Sleep 1000
SendInput {vk75}
Sleep 30
SendInput Диспетчер, это 9-4-8, клиента забрал, едем по маршруту.
SendInput {Enter}
Return</code></pre></div><p>Во время работы задержки, нажатые клавиши вмешиваются в работу скрипта. Есть ли возможность, написать скрипт так, что бы во время его работы, а именно во время задержи, не учитывались нажатые клавиши на клавиатуре?<br />P.S. код построен немного странно, но это единственный рабочий вариант на MTA, который у меня работает. Без команды Sleep, в игре начинается свистопляска.</p>]]></content>
			<author>
				<name><![CDATA[JacksonZ]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=40359</uri>
			</author>
			<updated>2019-12-05T21:54:41Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=136769#p136769</id>
		</entry>
</feed>
