<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: HotKey Как на одну кнопку сделать 2 действия по очередна?]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=13989&amp;type=atom" />
	<updated>2018-08-06T20:02:37Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=13989</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: HotKey Как на одну кнопку сделать 2 действия по очередна?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=127728#p127728" />
			<content type="html"><![CDATA[<p><strong>serzh82saratov</strong>Спасибо большое.</p>]]></content>
			<author>
				<name><![CDATA[anime]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39435</uri>
			</author>
			<updated>2018-08-06T20:02:37Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=127728#p127728</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: HotKey Как на одну кнопку сделать 2 действия по очередна?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=127727#p127727" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>#UseHook

1:: 
	Try SetTimer % &quot;One&quot; I, Off
	SetTimer % &quot;One&quot; (I := !I || I = 2 ? 1 : ++I), 1
	return	
	
One1:
	SendInput, {2}{3}
	return
	
One2:
	SendInput, {4}{5}
	return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2018-08-06T19:57:33Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=127727#p127727</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: HotKey Как на одну кнопку сделать 2 действия по очередна?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=127726#p127726" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><p>Ну а в этом коде как?</p></blockquote></div><p>При нажатии 1 отправляет 2,3 1 раз, а как сделать чтоб отправляло бесконечно до след нажатия где уже будет бесконечно отправляться 4,5 и тд</p>]]></content>
			<author>
				<name><![CDATA[anime]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39435</uri>
			</author>
			<updated>2018-08-06T19:40:05Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=127726#p127726</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: HotKey Как на одну кнопку сделать 2 действия по очередна?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=127725#p127725" />
			<content type="html"><![CDATA[<p>Ну а в этом коде как?</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2018-08-06T19:34:01Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=127725#p127725</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: HotKey Как на одну кнопку сделать 2 действия по очередна?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=127724#p127724" />
			<content type="html"><![CDATA[<p><strong>serzh82saratov</strong> ну т.е чтоб первая и вторая метка были в бесконечном цикле, при нажатии так же переходили на след</p>]]></content>
			<author>
				<name><![CDATA[anime]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39435</uri>
			</author>
			<updated>2018-08-06T19:33:00Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=127724#p127724</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: HotKey Как на одну кнопку сделать 2 действия по очередна?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=127723#p127723" />
			<content type="html"><![CDATA[<p>В смысле первые две метки?<br /></p><div class="codebox"><pre><code>#UseHook
1:: Gosub % &quot;One&quot; (I := !I || I = 2 ? 1 : ++I)

One1:
	SendInput, {2}{3}
	return
One2:
	SendInput, {4}{5}
	return </code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2018-08-06T19:29:03Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=127723#p127723</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: HotKey Как на одну кнопку сделать 2 действия по очередна?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=127722#p127722" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><div class="codebox"><pre><code>#UseHook
1:: Gosub % &quot;One&quot; (I := !I || I = 3 ? 1 : ++I)

One1:
	SendInput, {2}{3}
	return
One2:
	SendInput, {4}{5}
	return
One3:
	SendInput, {6}{7}
	return</code></pre></div></blockquote></div><p> А не подскажите как зациклить первые две фазы?</p>]]></content>
			<author>
				<name><![CDATA[anime]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39435</uri>
			</author>
			<updated>2018-08-06T19:10:15Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=127722#p127722</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: HotKey Как на одну кнопку сделать 2 действия по очередна?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=127558#p127558" />
			<content type="html"><![CDATA[<p><a href="http://www.script-coding.com/AutoHotkey/Variables.1.0.46.07.html">http://www.script-coding.com/AutoHotkey … 46.07.html</a> — ищите &quot;Тернарный условный оператор&quot;.</p>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2018-07-30T03:36:13Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=127558#p127558</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: HotKey Как на одну кнопку сделать 2 действия по очередна?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=127557#p127557" />
			<content type="html"><![CDATA[<p><strong>serzh82saratov</strong><br />А есть литература по вот этому &quot;(I := !I || I = 3 ? 1 : ++I)&quot;?<br />Если есть скиньте ссылку.</p>]]></content>
			<author>
				<name><![CDATA[DaGer]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39390</uri>
			</author>
			<updated>2018-07-30T00:15:10Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=127557#p127557</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: HotKey Как на одну кнопку сделать 2 действия по очередна?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=127556#p127556" />
			<content type="html"><![CDATA[<p>Спасибо.</p>]]></content>
			<author>
				<name><![CDATA[DaGer]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39390</uri>
			</author>
			<updated>2018-07-29T23:40:10Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=127556#p127556</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: HotKey Как на одну кнопку сделать 2 действия по очередна?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=127555#p127555" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>#UseHook
1:: Gosub % &quot;One&quot; (I := !I || I = 3 ? 1 : ++I)

One1:
	SendInput, {2}{3}
	return
One2:
	SendInput, {4}{5}
	return
One3:
	SendInput, {6}{7}
	return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2018-07-29T23:38:33Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=127555#p127555</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: HotKey Как на одну кнопку сделать 2 действия по очередна?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=127554#p127554" />
			<content type="html"><![CDATA[<p>Он перескакивает только при одном нажатии, двойном нажатии и тройном нажатии, а мне надо чтобы&nbsp; 1 раз нажал он выполнил одно действие ждет повторного нажатия, <br />второй раз нажал делает второе действие. И можно как-то по проще сделать код а то я не понимаю что к чему. </p><div class="codebox"><pre><code>
1:: MultiDown(&quot;One&quot;) 
+2:: MultiDown(&quot;Shift_Two&quot;) 

MultiDown(Name, I = 0) { 
	Key := RegExReplace(A_ThisHotkey, &quot;S)[~\*\^\+\$&lt;&gt;!#]&quot;)
	While !ErrorLevel &amp;&amp; ++I 
	{
		KeyWait, %Key%
		KeyWait, %Key%, D T0.2
	}
	Try Gosub % Name I
	Catch
		MsgBox, 16, , % &quot;Имя: &quot; Name &quot;`nНажал: &quot; I &quot; раз&quot;, 0.8
}

One1:
SendInput, {2}{3}
return
One2:
SendInput, {4}{5}
return
One3:
SendInput, {6}{7}
return

</code></pre></div>]]></content>
			<author>
				<name><![CDATA[DaGer]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39390</uri>
			</author>
			<updated>2018-07-29T23:34:41Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=127554#p127554</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: HotKey Как на одну кнопку сделать 2 действия по очередна?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=127553#p127553" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>
1:: MultiDown(&quot;One&quot;) 
+2:: MultiDown(&quot;Shift_Two&quot;) 

MultiDown(Name, I = 0) { 
	Key := RegExReplace(A_ThisHotkey, &quot;S)[~\*\^\+\$&lt;&gt;!#]&quot;)
	While !ErrorLevel &amp;&amp; ++I { 
		KeyWait, %Key%
		KeyWait, %Key%, D T0.2
	} 
	Try Gosub % Name I
	Catch
		MsgBox, 16, , % &quot;Имя: &quot; Name &quot;`nНажал: &quot; I &quot; раз&quot;, 0.8
}

One1:
One2:
One3:
Shift_Two4:
	MsgBox, 64, , % A_ThisLabel, 0.4
	Return
	
Escape:: ExitApp
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2018-07-29T23:12:35Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=127553#p127553</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: HotKey Как на одну кнопку сделать 2 действия по очередна?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=127552#p127552" />
			<content type="html"><![CDATA[<p>Как сделать на одну кнопку 2,3,4 действия, чтобы при нажатии один раз он ждал нажатие второй раз и так далее?</p>]]></content>
			<author>
				<name><![CDATA[DaGer]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39390</uri>
			</author>
			<updated>2018-07-29T22:35:38Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=127552#p127552</id>
		</entry>
</feed>
