<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK:Запуск программы после нажатия клавиши F1 и удержания ее 3 секунды]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=15409&amp;type=atom" />
	<updated>2020-06-02T19:44:00Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=15409</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Запуск программы после нажатия клавиши F1 и удержания ее 3 секунды]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=139923#p139923" />
			<content type="html"><![CDATA[<p>Бывает. Проверьте, не попадает ли под какой-то контекст.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2020-06-02T19:44:00Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=139923#p139923</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Запуск программы после нажатия клавиши F1 и удержания ее 3 секунды]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=139920#p139920" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong></p><p>Работает! Только почему-то когда добавляю код в существующий скрипт, с другими горячими клавишами, перестает работать <img src="//forum.script-coding.com/img/smilies/sad.png" width="15" height="15" /> .</p>]]></content>
			<author>
				<name><![CDATA[tregalka]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33600</uri>
			</author>
			<updated>2020-06-02T18:12:22Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=139920#p139920</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Запуск программы после нажатия клавиши F1 и удержания ее 3 секунды]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=139901#p139901" />
			<content type="html"><![CDATA[<p>Можно так:<br /></p><div class="codebox"><pre><code>$F1::
   KeyWait, F1, T3
   if ErrorLevel
      goto start
   else
      Send {F1}
   Return
   
start:
   MsgBox, start
   Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2020-06-02T10:17:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=139901#p139901</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Запуск программы после нажатия клавиши F1 и удержания ее 3 секунды]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=139888#p139888" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong></p><p>В Вашем примере кода, клавиша F1 работает только на удержание, а реакции на разовое нажатие не происходит.<br />А в 1ом примере кода &quot;SuBrex&quot; клавиша F1 работает как на разовое нажатие, так и на удержание!<br />Что нужно дописать в ваш код, чтобы клавиша работала, как на разовое нажатие так и на удержание!?</p>]]></content>
			<author>
				<name><![CDATA[tregalka]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33600</uri>
			</author>
			<updated>2020-06-02T06:26:15Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=139888#p139888</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Запуск программы после нажатия клавиши F1 и удержания ее 3 секунды]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=139881#p139881" />
			<content type="html"><![CDATA[<p>Ну или так:<br /></p><div class="codebox"><pre><code>$F1::
   KeyWait, F1, T3
   if ErrorLevel
      goto start
   Return
   
start:
   MsgBox, start
   Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2020-06-01T15:49:49Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=139881#p139881</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Запуск программы после нажатия клавиши F1 и удержания ее 3 секунды]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=139876#p139876" />
			<content type="html"><![CDATA[<p><strong>tregalka</strong><br />О, на самом деле не подумал, спасибо. Советую после else поставить break для выхода из <span class="bbu">цикла</span>, а после фигурных скобок вставить свой скрипт.</p>]]></content>
			<author>
				<name><![CDATA[SuBrex]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40829</uri>
			</author>
			<updated>2020-06-01T14:00:49Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=139876#p139876</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Запуск программы после нажатия клавиши F1 и удержания ее 3 секунды]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=139870#p139870" />
			<content type="html"><![CDATA[<p><strong>SuBrex</strong></p><p>Все разобрался! Засунул код, вместо start, сразу после Else и все работает как надо. Спасибо Друг!</p>]]></content>
			<author>
				<name><![CDATA[tregalka]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33600</uri>
			</author>
			<updated>2020-06-01T13:01:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=139870#p139870</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Запуск программы после нажатия клавиши F1 и удержания ее 3 секунды]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=139869#p139869" />
			<content type="html"><![CDATA[<p><strong>SuBrex</strong> <br />Спасибо! Работает!<br />Только почему-то 1 раз, если снова нажимаю F1 и удерживаю, ничего не происходит.</p>]]></content>
			<author>
				<name><![CDATA[tregalka]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33600</uri>
			</author>
			<updated>2020-06-01T12:43:49Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=139869#p139869</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Запуск программы после нажатия клавиши F1 и удержания ее 3 секунды]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=139865#p139865" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>
m:
Loop
{
 Sleep, 10
 GetKeyState, state, sc3B
 If state = D
 Sleep, 3000
 GetKeyState, state, sc3B
 If state = U
 goto, m
 Else
 goto, start
}
Return

start:
</code></pre></div><p>После метки &quot;start&quot; со следующей строчки идёт Ваш скрипт</p>]]></content>
			<author>
				<name><![CDATA[SuBrex]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40829</uri>
			</author>
			<updated>2020-06-01T10:43:10Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=139865#p139865</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK:Запуск программы после нажатия клавиши F1 и удержания ее 3 секунды]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=139853#p139853" />
			<content type="html"><![CDATA[<p>Добрый день! Подскажите пожалуйста как написать данный код.</p>]]></content>
			<author>
				<name><![CDATA[tregalka]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33600</uri>
			</author>
			<updated>2020-06-01T08:07:39Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=139853#p139853</id>
		</entry>
</feed>
