<?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=11710&amp;type=atom" />
	<updated>2016-06-12T22:02:02Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=11710</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Включение/выключение скрипта одним хоткеем]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=105184#p105184" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>^F1::SetTimer, Timer, % (T := !T) ? 5000 : &quot;off&quot;

Timer:
	sendinput, {enter}
	return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2016-06-12T22:02:02Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=105184#p105184</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Включение/выключение скрипта одним хоткеем]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=105162#p105162" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>^F1::SetTimer, Timer,% (T := !T) ? -1: &quot;off&quot;

Timer:
if (T=1) and T++
	SetTimer, Timer,5000

sendinput, {enter}
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[yalanne]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32850</uri>
			</author>
			<updated>2016-06-12T11:03:42Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=105162#p105162</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Включение/выключение скрипта одним хоткеем]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=105161#p105161" />
			<content type="html"><![CDATA[<p>Там &quot;enter&quot; должен спамиться каждые 5 секунд.</p>]]></content>
			<author>
				<name><![CDATA[SeaVodikendu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33752</uri>
			</author>
			<updated>2016-06-12T10:47:35Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=105161#p105161</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Включение/выключение скрипта одним хоткеем]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=105157#p105157" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>^F1:: ; ctrl+ F1
T++
SetTimer, Timer,-1 
return

Timer:
if (T = 1) 
{
	T++
	ToolTip Включен
	SetTimer, Timer,-5000
}
else if (T &gt;= 2)
{
	ToolTip Отключен
	T := 0
}
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[yalanne]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32850</uri>
			</author>
			<updated>2016-06-12T09:13:45Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=105157#p105157</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Включение/выключение скрипта одним хоткеем]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=105155#p105155" />
			<content type="html"><![CDATA[<p>Здравствуйте.<br />Использую пример найденный на форуме:<br /></p><div class="codebox"><pre><code>
^pgup::
    T := !T 
    SetTimer, Loop, -1
    return

Loop:
MsgBox , , ,Включен, 1
    While T
    {
sendinput, {enter}
sleep 5000
     }
MsgBox , , ,Отключен, 1
 reload
    return</code></pre></div><p>Проблема в том, что скрипт не выключается мгновенно, а только по прошествии 5 секунд.</p>]]></content>
			<author>
				<name><![CDATA[SeaVodikendu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33752</uri>
			</author>
			<updated>2016-06-12T08:56:10Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=105155#p105155</id>
		</entry>
</feed>
