<?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=5894&amp;type=atom" />
	<updated>2011-06-10T18:12:32Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=5894</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Простоая кнопка включения-выключения]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=49071#p49071" />
			<content type="html"><![CDATA[<p><strong>InFlames</strong>, спасибо, Ваша версия прекрасно работает.</p>]]></content>
			<author>
				<name><![CDATA[BgoN]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26806</uri>
			</author>
			<updated>2011-06-10T18:12:32Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=49071#p49071</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Простоая кнопка включения-выключения]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=49070#p49070" />
			<content type="html"><![CDATA[<p>Скрипт просто должен одной кнопкой включаться и отключаться, т.е. какое либо дейстивие должно быть запущенно и остановленно одной кнопкой.</p>]]></content>
			<author>
				<name><![CDATA[BgoN]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26806</uri>
			</author>
			<updated>2011-06-10T18:01:13Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=49070#p49070</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Простоая кнопка включения-выключения]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=49068#p49068" />
			<content type="html"><![CDATA[<p>Не совсем понятно, что вообще от скрипта нужно. Зачем вкл/откл хоткей F1, да еще и сам себя отключает.<br />Может так?<br />Да и минимальный интервал для таймера по-моему 10 мс.</p><div class="codebox"><pre><code>*F1::
SetTimer, use, % (i := !i) ? &quot;1&quot; : &quot;Off&quot;
return

use:
Click
Sleep, 10
Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[InFlames]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24849</uri>
			</author>
			<updated>2011-06-10T15:00:12Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=49068#p49068</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Простоая кнопка включения-выключения]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=49066#p49066" />
			<content type="html"><![CDATA[<p>Использую вот такой скрипт:</p><div class="codebox"><pre><code>*F1:: ;Нажатие на клавишу запускает, повторное отлючает
Hotkey, *F1, F1, % (i := !i) ? &quot;On&quot; : &quot;Off&quot;
SetTimer, use, 1    ;Запуск
return

F1:
SetTimer, use, off   ; Остановка
return

use:
Click
Sleep, 10
Return</code></pre></div><p>Но он срабатывает через раз, не понимаю почему. Есть ли простой, рабочий вариант включения-отключения какого либо действия одной кнопкой?</p>]]></content>
			<author>
				<name><![CDATA[BgoN]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26806</uri>
			</author>
			<updated>2011-06-10T14:04:45Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=49066#p49066</id>
		</entry>
</feed>
