<?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=6913&amp;type=atom" />
	<updated>2012-03-09T22:07:41Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=6913</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Остановить исполнение горячей клавиши нажатием другой]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=57679#p57679" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>^vk51:: ; q
   While A_Index&lt;10
   {
      TrayTip,, % &quot;Press Break/Pause (wait: &quot;10-A_Index &quot;)&quot;
      Sleep, DllCall(&quot;GetAsyncKeyState&quot;, &quot;Int&quot;, 0x13, &quot;UShort&quot;)
           ? -1:1000
      If DllCall(&quot;GetAsyncKeyState&quot;, &quot;Int&quot;, 0x13, &quot;UShort&quot;)
         Break
   }
   MsgBox, 262208, % &quot; &quot;, first loop is broken, 1
   Loop
   {
      TrayTip,, % &quot;Press Break/Pause (&quot;A_Index &quot;)&quot;
      Sleep, DllCall(&quot;GetAsyncKeyState&quot;, &quot;Int&quot;, 0x13, &quot;UShort&quot;)
           ? -1:1000
      If DllCall(&quot;GetAsyncKeyState&quot;, &quot;Int&quot;, 0x13, &quot;UShort&quot;)
         Break
   }
   MsgBox, 262208, % &quot; &quot;, second loop is broken, 1
   Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Grey]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=25792</uri>
			</author>
			<updated>2012-03-09T22:07:41Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=57679#p57679</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Остановить исполнение горячей клавиши нажатием другой]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=57656#p57656" />
			<content type="html"><![CDATA[<p>Еще оговорюсь, что команда Pause здесь не подходит, так как цель - именно завершение подпрограммы, подобно команде Return внутри любого из циклов.</p>]]></content>
			<author>
				<name><![CDATA[Laert]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27695</uri>
			</author>
			<updated>2012-03-09T11:53:45Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=57656#p57656</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Остановить исполнение горячей клавиши нажатием другой]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=57655#p57655" />
			<content type="html"><![CDATA[<p>Допустим, исполняется цикл типа:<br /></p><div class="codebox"><pre><code>^q::
while условие1
  {
  ...
  }
...
while условие2
  {
  ...
  }
...
loop
  {
  ...
  }
Return</code></pre></div><p>Вопрос: как можно остановить исполнение подпрограммы ^q в любом месте нажатием другой горячей клавиши (допустим, Break)?</p>]]></content>
			<author>
				<name><![CDATA[Laert]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27695</uri>
			</author>
			<updated>2012-03-09T11:41:15Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=57655#p57655</id>
		</entry>
</feed>
