<?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=16650&amp;type=atom" />
	<updated>2021-10-09T11:18:58Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=16650</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI как одной кнопкой отменить выполнение предыдущего нажатия?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=149994#p149994" />
			<content type="html"><![CDATA[<p><strong>__Михаил__</strong><br />Ага, спасибо. Значит, таймер в винвейте. Чего то я его проглядел. <img src="//forum.script-coding.com/img/smilies/sad.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[Gh0sTG0]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39523</uri>
			</author>
			<updated>2021-10-09T11:18:58Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=149994#p149994</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI как одной кнопкой отменить выполнение предыдущего нажатия?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=149993#p149993" />
			<content type="html"><![CDATA[<p>Думаю, можно убрать &#039;WinWait&#039; и заменить на цикл, в котором будет проверка запуска нужной программы. Через некоторое кол-во неудач, выход из цикла.</p><p>Хотя нет, неверный подход, в справке пишут:<br /></p><div class="quotebox"><blockquote><p>WinWait [, WinTitle, WinText, Seconds, ExcludeTitle, ExcludeText]</p><p>Seconds	Время ожидания в секундах (может быть выражением). По истечении этого времени ErrorLevel устанавливается в 1. Оставьте параметр пустым, чтобы ждать неопределённо долго. Значение 0 означает то же, что 0.5.</p></blockquote></div>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2021-10-09T11:05:55Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=149993#p149993</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: GUI как одной кнопкой отменить выполнение предыдущего нажатия?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=149991#p149991" />
			<content type="html"><![CDATA[<p>Добрый день.<br />Есть программа, в ней гуй с кнопкой (да, одной единственной, не хочу добавлять вторую).<br />По нажатию кнопки запускается сотня строк кода, завершающихся:<br /></p><div class="codebox"><pre><code>
	Run, %something%
	WinWait, ahk_exe that_thing.exe
	WinMove, ahk_exe that_thing.exe,, 0, 0, 1000, 1000
	Send...
	Send...
	Return
</code></pre></div><p>Собственно, иногда это that_thing не запускается и программа зависает на winwait&#039;е до тех пор пока я ее не рестартну.<br />Однако, вопрос не по that_thing&#039;у, а по ahk:<br /><span class="bbu">Возможно ли как то сделать так, чтобы алгоритм <em>&quot;нажатие кнопки-WinWait&quot;</em> превратить в алгоритм <em>&quot;нажатие кнопки-WinWait-нажатие кнопки(отменяющее WinWait и перезапускающее код)-WinWait-...&quot;</em>?</span></p>]]></content>
			<author>
				<name><![CDATA[Gh0sTG0]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39523</uri>
			</author>
			<updated>2021-10-09T10:14:52Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=149991#p149991</id>
		</entry>
</feed>
