<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: GUI Если нажата кнопка интерефейса, выйти из цикла]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=9839&amp;type=atom" />
	<updated>2014-07-27T12:02:34Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=9839</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI Если нажата кнопка интерефейса, выйти из цикла]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=85290#p85290" />
			<content type="html"><![CDATA[<p>Спасибо!</p>]]></content>
			<author>
				<name><![CDATA[raznoczvetov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32329</uri>
			</author>
			<updated>2014-07-27T12:02:34Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=85290#p85290</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI Если нажата кнопка интерефейса, выйти из цикла]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=85288#p85288" />
			<content type="html"><![CDATA[<p>Так правильно:<br /></p><div class="codebox"><pre><code>If (control=&quot;Button14&quot;)</code></pre></div><p>Или<br /></p><div class="codebox"><pre><code>If control=Button14</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Alectric]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26027</uri>
			</author>
			<updated>2014-07-27T11:58:20Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=85288#p85288</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: GUI Если нажата кнопка интерефейса, выйти из цикла]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=85287#p85287" />
			<content type="html"><![CDATA[<p>Как сделать так, чтобы при нажатии на кнопку с сontrol = &quot;Button14&quot;, завершался цикл.<br />Пробовал по разному. Нажатие кнопки отслеживает, но проверку </p><div class="codebox"><pre><code>If %control% = &quot;Button14&quot;
              {
                MsgBox, Нажата кнопка %control%
                Break
              }
</code></pre></div><p>не делает. Сам код:</p><div class="codebox"><pre><code>Loop
{
Sleep, 20
If GetKeyState(&quot;LButton&quot;, &quot;P&quot;)
   {
   MouseGetPos, , , id, control
   WinGetTitle, title, ahk_id %id%
   WinGetClass, class, ahk_id %id%
   MsgBox, Нажата кнопка %control%
   
   If %control% = &quot;Button14&quot;
      {
       MsgBox, Нажата кнопка %control%
       Break
       }
   }
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[raznoczvetov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32329</uri>
			</author>
			<updated>2014-07-27T11:24:51Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=85287#p85287</id>
		</entry>
</feed>
