<?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=13703&amp;type=atom" />
	<updated>2018-08-22T22:01:27Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=13703</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Завершение цикла при нажатии горячей клавиши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=128193#p128193" />
			<content type="html"><![CDATA[<p>а не легче сделать простую проверку на нажатие клавиши внутри цикла?</p><div class="codebox"><pre><code>
F2::
Sleep, 2000
Loop
{
Getkeystate state, F2, P
if state = D
{
Break
}
Send f3
Sleep, 1000
}
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[baplo]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38886</uri>
			</author>
			<updated>2018-08-22T22:01:27Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=128193#p128193</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Завершение цикла при нажатии горячей клавиши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=128151#p128151" />
			<content type="html"><![CDATA[<p><strong>Malcev</strong>, не увидел, признаю.</p>]]></content>
			<author>
				<name><![CDATA[Gutalin]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39002</uri>
			</author>
			<updated>2018-08-21T14:41:21Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=128151#p128151</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Завершение цикла при нажатии горячей клавиши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=128150#p128150" />
			<content type="html"><![CDATA[<p>Чем тогда ваш вариант отличается от:<br /><a href="http://forum.script-coding.com/viewtopic.php?pid=125323#p125323">http://forum.script-coding.com/viewtopi … 23#p125323</a></p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2018-08-21T14:37:29Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=128150#p128150</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Завершение цикла при нажатии горячей клавиши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=128149#p128149" />
			<content type="html"><![CDATA[<p><strong>Malcev</strong>, Ваш код мне не показал, что я сделал не так, извините.<br />Заново запустить можно с помощью: </p><div class="codebox"><pre><code>Settimer, Loop, on</code></pre></div><p>Не имея код, могу лишь предложить засунуть это также через Хоткей:<br /></p><div class="codebox"><pre><code>f3:: 
Settimer, Loop, on
Return	</code></pre></div><p>Или в Label.</p>]]></content>
			<author>
				<name><![CDATA[Gutalin]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39002</uri>
			</author>
			<updated>2018-08-21T14:28:41Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=128149#p128149</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Завершение цикла при нажатии горячей клавиши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=128148#p128148" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Нафаня пишет:</cite><blockquote><p>когда останавливаешь скрипт, он больше не запускается, потому не подходит. Sorry.</p></blockquote></div>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2018-08-21T14:23:36Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=128148#p128148</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Завершение цикла при нажатии горячей клавиши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=128146#p128146" />
			<content type="html"><![CDATA[<p><strong>Malcev</strong>, у меня все работает, а что не так? (Только что лично проверил).</p>]]></content>
			<author>
				<name><![CDATA[Gutalin]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39002</uri>
			</author>
			<updated>2018-08-21T14:19:17Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=128146#p128146</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Завершение цикла при нажатии горячей клавиши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=128145#p128145" />
			<content type="html"><![CDATA[<p><strong>Gutalin</strong>, а вы сами свой скрипт запускать пробовали?</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2018-08-21T13:26:36Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=128145#p128145</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Завершение цикла при нажатии горячей клавиши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=128144#p128144" />
			<content type="html"><![CDATA[<p>А что, если так?<br /></p><div class="codebox"><pre><code>Settimer, Loop, on
Return

Loop:
{
Sendinput {Up down}
Sleep 230
Sendinput {Up up}
Sleep 200
}
	

f2:: 
Settimer, Loop, off
Return	</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Gutalin]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39002</uri>
			</author>
			<updated>2018-08-21T13:09:16Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=128144#p128144</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Завершение цикла при нажатии горячей клавиши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=125369#p125369" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>#If loop
F12::
Pause toggle
return
#If

F12::
loop := 1
loop    
{
   tooltip % a_index
}
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2018-05-14T19:24:58Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=125369#p125369</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Завершение цикла при нажатии горячей клавиши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=125367#p125367" />
			<content type="html"><![CDATA[<p><strong>qqlexa</strong>, прости, но тоже не подходит, я не думал что все так сложно... Когда зажат F3, цикл прерывается, но когда его отжать он опять возобновляет, у меня так компьютер глючить начал.</p>]]></content>
			<author>
				<name><![CDATA[Нафаня]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39252</uri>
			</author>
			<updated>2018-05-14T19:17:42Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=125367#p125367</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Завершение цикла при нажатии горячей клавиши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=125361#p125361" />
			<content type="html"><![CDATA[<p><strong>KusochekDobra</strong>, мне очень понравился Ваш ответ. Буду меняться.</p>]]></content>
			<author>
				<name><![CDATA[qqlexa]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39096</uri>
			</author>
			<updated>2018-05-14T16:47:53Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=125361#p125361</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Завершение цикла при нажатии горячей клавиши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=125360#p125360" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>qqlexa пишет:</cite><blockquote><p>В вашей просьбе было сказано только лишь о остановке цикла, а о перезапуске речи не было.<br /></p><div class="codebox"><pre><code>
x:=0
F2::
Loop
{
if x=1 
break
Sendinput {Up down}
Sleep 230
Sendinput {Up up}
Sleep 200
}
return

F3::
If x=0
x:=1
x:=0
return
</code></pre></div></blockquote></div><div class="codebox"><pre><code>
x:=0
F2::
	Loop
	{
		if x=1 
			break
		Sendinput {Up down}
		Sleep 230
		Sendinput {Up up}
		Sleep 200
	}
return

F3::
	If x=0
		x:=1
	x:=0
return
</code></pre></div><p>Отступы визуализируют ветвление кода, показывая отношение блоков кода к их операторам.<br />Вам, может быть понятно течение Вашей мыли, даже если Вы его не отображаете текстом и примерами, но, если Вы, всё же делаете описание, то лучше уж считайте всех вокруг тупыми людьми, которым всё нужно разжёвывать, тогда чем качественней будет посыл, тем однозначней он будет воспринят.</p>]]></content>
			<author>
				<name><![CDATA[KusochekDobra]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33846</uri>
			</author>
			<updated>2018-05-14T16:31:03Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=125360#p125360</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Завершение цикла при нажатии горячей клавиши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=125358#p125358" />
			<content type="html"><![CDATA[<p><strong>KusochekDobra</strong>, Носом тыкните как сделать и всё. Не могу понять где именно нет отступов, для меня всё читабельно.</p>]]></content>
			<author>
				<name><![CDATA[qqlexa]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39096</uri>
			</author>
			<updated>2018-05-14T16:01:04Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=125358#p125358</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Завершение цикла при нажатии горячей клавиши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=125357#p125357" />
			<content type="html"><![CDATA[<p><strong>qqlexa</strong>, читатьпредложениебезпробеловтакжепроблематичнокакчитатьчужойкодбезотступов.<br />Хоть и возможно.</p>]]></content>
			<author>
				<name><![CDATA[KusochekDobra]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33846</uri>
			</author>
			<updated>2018-05-14T15:50:38Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=125357#p125357</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Завершение цикла при нажатии горячей клавиши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=125356#p125356" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Malcev пишет:</cite><blockquote><p><strong>qqlexa</strong>, почему не используете отступы, ведь читать неудобно:<br /></p><div class="codebox"><pre><code>If x=0
x:=1
x:=0
return</code></pre></div></blockquote></div><p> Как это лучше бы сделать?</p>]]></content>
			<author>
				<name><![CDATA[qqlexa]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39096</uri>
			</author>
			<updated>2018-05-14T15:28:04Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=125356#p125356</id>
		</entry>
</feed>
