<?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="https://forum.script-coding.com/extern.php?action=feed&amp;tid=11633&amp;type=atom" />
	<updated>2016-05-25T21:04:42Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=11633</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как работает пауза?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=104237#p104237" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>^space::
	suspend
	soundbeep
	Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2016-05-25T21:04:42Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=104237#p104237</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как работает пауза?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=104236#p104236" />
			<content type="html"><![CDATA[<p>Спасибо, а как при этом выдавать звуковой сигнал?</p><p>Вот так не работает:<br /></p><div class="codebox"><pre><code>
^space::suspend
	soundbeep 600, 400</code></pre></div>]]></content>
			<author>
				<name><![CDATA[grigo.alek]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33905</uri>
			</author>
			<updated>2016-05-25T20:42:08Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=104236#p104236</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как работает пауза?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=104229#p104229" />
			<content type="html"><![CDATA[<p>См. команду Suspend.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2016-05-25T19:57:03Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=104229#p104229</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Как работает пауза?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=104224#p104224" />
			<content type="html"><![CDATA[<p>Когда я нажимаю паузу, скрипт продолжает работать, кнопки продолжают обрабатываться.<br />А хотелось бы, чтобы после вызова паузу, Hotkeys переставали работать. После повторного нажатия на кнопку паузы, чтобы снова начинали работать. Как это реализовать?</p><div class="codebox"><pre><code>#SingleInstance force

skill_1=vk51 ;q
skill_2=vk57 ;w
skill_3=vk45 ;e
skill_4=vk44 ;d
skill_5=vk46 ;f
skill_6=vk52 ;r

number_of_uses_1=5
number_of_uses_2=5
number_of_uses_3=5
number_of_uses_4=5
number_of_uses_5=5
number_of_uses_6=5


HotKey, $%skill_1%, use_skill_1
HotKey, $%skill_2%, use_skill_2
HotKey, $%skill_3%, use_skill_3
HotKey, $%skill_4%, use_skill_4
HotKey, $%skill_5%, use_skill_5
HotKey, $%skill_6%, use_skill_6

return

use_skill_1:
	loop %number_of_uses_1% 
		send {%skill_1%}
		KeyWait % Ltrim(A_ThisHotkey,&quot;$&quot;)
return

use_skill_2:
	loop %number_of_uses_2% 
		send {%skill_2%}
		KeyWait % Ltrim(A_ThisHotkey,&quot;$&quot;)
return
		
use_skill_3:
	loop %number_of_uses_3% 
		send {%skill_3%}
		KeyWait % Ltrim(A_ThisHotkey,&quot;$&quot;)
return
		
use_skill_4:
	loop %number_of_uses_4% 
		send {%skill_4%}
		KeyWait % Ltrim(A_ThisHotkey,&quot;$&quot;)
return
		
use_skill_5:
	loop %number_of_uses_5% 
		send {%skill_5%}
		KeyWait % Ltrim(A_ThisHotkey,&quot;$&quot;)
return
		
use_skill_6:
	loop %number_of_uses_6% 
		send {%skill_6%}
		KeyWait % Ltrim(A_ThisHotkey,&quot;$&quot;)
return

^space::Pause  
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[grigo.alek]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33905</uri>
			</author>
			<updated>2016-05-25T19:30:36Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=104224#p104224</id>
		</entry>
</feed>
