<?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=11390&amp;type=atom" />
	<updated>2016-03-11T20:17:53Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=11390</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Постоянная работа скрипта]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=101800#p101800" />
			<content type="html"><![CDATA[<p>Не нажата ли, а просто переменную, тут никакой загрузки даже в цикле без задержки. По другому завершить другой поток, насколько я знаю, нельзя.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2016-03-11T20:17:53Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=101800#p101800</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Постоянная работа скрипта]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=101799#p101799" />
			<content type="html"><![CDATA[<p><strong>serzh82saratov</strong>,<br />Ясно, спасибо.<br />Но в этом случае скрипт все время проверяет нажата ли клавиша. Лишняя нагрузка.</p>]]></content>
			<author>
				<name><![CDATA[ThrowSum]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33610</uri>
			</author>
			<updated>2016-03-11T20:09:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=101799#p101799</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Постоянная работа скрипта]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=101798#p101798" />
			<content type="html"><![CDATA[<p>Как вариант:<br /></p><div class="codebox"><pre><code>1::
	Loop := 1
	While Loop
	{
		If !Mod(A_Index, 2) 
			ToolTip чётно
		Else
			ToolTip нечётно
		Sleep 200
	} 
	Return

2::
	ToolTip
	Loop := 0
	MsgBox Break
	Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2016-03-11T20:03:42Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=101798#p101798</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Постоянная работа скрипта]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=101797#p101797" />
			<content type="html"><![CDATA[<p><strong>serzh82saratov</strong>,<br />Любой цикл, тот же Loop, прервать его можно используя break, но как назначить прерывание на клавишу?</p>]]></content>
			<author>
				<name><![CDATA[ThrowSum]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33610</uri>
			</author>
			<updated>2016-03-11T19:59:15Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=101797#p101797</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Постоянная работа скрипта]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=101796#p101796" />
			<content type="html"><![CDATA[<p>Лучше приведите пример, скорее всего это проще по таймеру.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2016-03-11T19:54:31Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=101796#p101796</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Постоянная работа скрипта]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=101795#p101795" />
			<content type="html"><![CDATA[<p><strong>serzh82saratov</strong>, а если нужно прервать работу цикла по нажатии клавиши и перейти к следующему действию. Не подскажите как?</p><p>Например остановить действие всего можно вот так, но только с выходом из скрипта, а выходить не нужно.<br /></p><div class="codebox"><pre><code>Esc:: ExitApp
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[ThrowSum]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33610</uri>
			</author>
			<updated>2016-03-11T19:51:42Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=101795#p101795</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Постоянная работа скрипта]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=101752#p101752" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>Loop
{
	If !Mod(A_Index, 2) 
		ToolTip чётно
	Else
		ToolTip нечётно
	Sleep 200
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2016-03-10T10:42:53Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=101752#p101752</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Постоянная работа скрипта]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=101749#p101749" />
			<content type="html"><![CDATA[<p>Подскажите пожалуйста, что нужно прописать в скрипте, чтобы он не прекращал работу сразу после его запуска, а постоянно работал и мониторил выполняется условия (if-else) или нет.<br />Горячих клавиш в скрипте нет.</p>]]></content>
			<author>
				<name><![CDATA[tregalka]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33600</uri>
			</author>
			<updated>2016-03-10T08:26:21Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=101749#p101749</id>
		</entry>
</feed>
