<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK_L Подача звукового сигнала после 3 секунд зажатия ЛКМ]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=7126&amp;type=atom" />
	<updated>2012-04-22T18:45:42Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=7126</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK_L Подача звукового сигнала после 3 секунд зажатия ЛКМ]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=59655#p59655" />
			<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>2012-04-22T18:45:42Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=59655#p59655</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK_L Подача звукового сигнала после 3 секунд зажатия ЛКМ]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=59654#p59654" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>#SingleInstance force
~*f2::
    SetTimer, label, -2000

    KeyWait F2
    SetTimer, label, Off
    return

label:
    Gui, +ToolWindow
    Gui, +AlwaysOnTop
    Gui, -Border
    Gui, Color,  Blue
    Gui, font, s22
    Gui, Add, Text, cWhite, НАУШНИКИ
    Gui, Show, NoActivate x15 y15 w260 h70
    return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[creature.ws]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26105</uri>
			</author>
			<updated>2012-04-22T18:32:02Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=59654#p59654</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK_L Подача звукового сигнала после 3 секунд зажатия ЛКМ]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=59651#p59651" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Indomito пишет:</cite><blockquote><p>Так там и стоит 2 секунды, правда можно просто нажать, а что надо ждать 2 секунды и если не нажата то не выполнять? Просто не очень понятно написано, т.е. не верно немного.</p></blockquote></div><p>совершать какое-то действие,если нужная кнопка находится в положении Down определённое время,если этот промежуток времени меньше заданного и кнопка отпущена,то таймер сбрасывается,и НИЧЕГО НЕ ПРОИСХОДИТ.</p><p>А если нужная кнопка находится в положении Down определённое время, то сразу происходит действие<br />А в примере получается что если я её просто нажал,не важно на какое время,то через 2 сек ,после того как я её отпустил,происходит действие<br />Как в посте 2,всё как надо работает,но почему если я вместо LButton ,ставлю другую кнопку то ничего не происходит?</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2012-04-22T15:19:09Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=59651#p59651</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK_L Подача звукового сигнала после 3 секунд зажатия ЛКМ]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=59650#p59650" />
			<content type="html"><![CDATA[<p>Так там и стоит 2 секунды, правда можно просто нажать, а что надо ждать 2 секунды и если не нажата то не выполнять? Просто не очень понятно написано, т.е. не верно немного.</p>]]></content>
			<author>
				<name><![CDATA[Indomito]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27285</uri>
			</author>
			<updated>2012-04-22T15:14:37Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=59650#p59650</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK_L Подача звукового сигнала после 3 секунд зажатия ЛКМ]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=59649#p59649" />
			<content type="html"><![CDATA[<p>Как то странно,получается с Lbutton всё норм,стоит подставить другую,и не работает.Ваш пример почему-то выполняет действие через 2 сек,после того как я отпускаю кнопку.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2012-04-22T15:10:39Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=59649#p59649</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK_L Подача звукового сигнала после 3 секунд зажатия ЛКМ]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=59648#p59648" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>действие такое<br />Зажимаю ЛКМ, через 3 секунды отпускание происходит автоматически</p></blockquote></div><div class="codebox"><pre><code>Lbutton::
    Click L D
    Sleep 3000
    Click L U
    return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[creature.ws]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26105</uri>
			</author>
			<updated>2012-04-22T14:48:07Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=59648#p59648</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK_L Подача звукового сигнала после 3 секунд зажатия ЛКМ]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=59647#p59647" />
			<content type="html"><![CDATA[<p>ну как то так видимо </p><div class="codebox"><pre><code>#SingleInstance force
~*f2::SetTimer, Beep, -2000
return
;~*f2 Up::SetTimer, Beep, Off
;return 
Beep:
SetTimer, Beep, Off
Gui, +ToolWindow
Gui, +AlwaysOnTop
Gui, -Border
Gui, Color,  Blue
Gui, Show, NoActivate x15 y15 w260 h70
Gui, font, s22
Gui, Add, Text, cWhite, НАУШНИКИ
return</code></pre></div><p>кстати, строчка <strong>SetTimer, Beep, Off</strong> не нужна - таймер <em>&quot;одноразовый&quot;</em>.</p>]]></content>
			<author>
				<name><![CDATA[Indomito]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27285</uri>
			</author>
			<updated>2012-04-22T14:47:23Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=59647#p59647</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK_L Подача звукового сигнала после 3 секунд зажатия ЛКМ]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=59645#p59645" />
			<content type="html"><![CDATA[<p>Спасибо.Попробовал такой код,не работает,сколько не держу кнопку,ничего не происходит<br /></p><div class="codebox"><pre><code>#SingleInstance force
~*f2::SetTimer, Beep, -2000
~*f2 Up::SetTimer, Beep, Off
 
Beep:
Gui, +ToolWindow
Gui, +AlwaysOnTop
Gui, -Border
Gui, Color,  Blue
Gui, Show, NoActivate x15 y15 w260 h70
Gui, font, s22
Gui, Add, Text, cWhite, НАУШНИКИ
return</code></pre></div><p>С LButton Работает<br />В чём моя ошибка?</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2012-04-22T14:36:16Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=59645#p59645</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK_L Подача звукового сигнала после 3 секунд зажатия ЛКМ]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=59644#p59644" />
			<content type="html"><![CDATA[<p>Ну в справке конечно, есть линк(англ.) и есть два chm-файла (англ. и русс.)</p><p><a href="http://www.autohotkey.com/docs/commands.htm">Alphabetical Command List for AutoHotkey</a></p><p><a href="http://www.script-coding.com/AutoHotkey/AutoHotkey.zip">Русская документация (по состоянию на 11.10.2008) в виде chm-файла - AutoHotkey.zip</a></p>]]></content>
			<author>
				<name><![CDATA[Indomito]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27285</uri>
			</author>
			<updated>2012-04-22T14:30:27Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=59644#p59644</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK_L Подача звукового сигнала после 3 секунд зажатия ЛКМ]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=59643#p59643" />
			<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>2012-04-22T14:28:31Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=59643#p59643</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK_L Подача звукового сигнала после 3 секунд зажатия ЛКМ]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=59642#p59642" />
			<content type="html"><![CDATA[<p>Приветствую.<br />Для начала посмотри это - <a href="http://forum.script-coding.com/viewtopic.php?id=490">AHK :: Разные действия для одиночного и двойного нажатия клавиши</a>.<br />А я сейчас подумаю и дополню ответ.</p><p>Так...<br />То есть в <a href="http://forum.script-coding.com/viewtopic.php?pid=59555#p59555">посте #2</a> тебе уже ответил <strong>creature.ws</strong> и очень полно.</p><p>Сорри это не тебе, а <strong>Wermat</strong> - не обратил внимания.</p>]]></content>
			<author>
				<name><![CDATA[Indomito]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27285</uri>
			</author>
			<updated>2012-04-22T14:20:33Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=59642#p59642</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK_L Подача звукового сигнала после 3 секунд зажатия ЛКМ]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=59628#p59628" />
			<content type="html"><![CDATA[<p>Надо так </p><div class="codebox"><pre><code>$LButton::
   While GetKeyState(A_ThisHotkey, &quot;P&quot;)
   sleep 3000</code></pre></div><p>т.к.&nbsp; <strong>A_ThisHotkey = LButton</strong>, хотя проще сделать по таймеру, так надёжнее.</p><p>А про звук, то вместо <a href="http://www.autohotkey.com/docs/commands/SoundBeep.htm">SoundBeep</a> использовать <a href="http://www.autohotkey.com/docs/commands/SoundPlay.htm">SoundPlay</a>, так вроде бы лучше IMHO</p>]]></content>
			<author>
				<name><![CDATA[Indomito]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27285</uri>
			</author>
			<updated>2012-04-22T11:54:13Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=59628#p59628</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK_L Подача звукового сигнала после 3 секунд зажатия ЛКМ]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=59627#p59627" />
			<content type="html"><![CDATA[<p>А можно усовершенствовать скрипт? уже без зуковых сигналов.<br />действие такое<br />Зажимаю ЛКМ, через 3 секунды отпускание происходит автоматически<br />я попробывал такой скрипт, но он вообще отключает ЛКМ<br /></p><div class="codebox"><pre><code>LButton::
   While GetKeyState(A_ThisHotkey, &quot;P&quot;)
   sleep 3000</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Wermat]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27138</uri>
			</author>
			<updated>2012-04-22T11:15:04Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=59627#p59627</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK_L Подача звукового сигнала после 3 секунд зажатия ЛКМ]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=59557#p59557" />
			<content type="html"><![CDATA[<p>Команда Sleep верная (как Хатико из одноимённой истории)</p><p><strong>Что</strong> вам нужно знаете лишь вы, если требуется «производить звуковую сигнализацию» при отпускании кнопки мыши при нажатии любой длительности, то пример #2 подойдёт.</p>]]></content>
			<author>
				<name><![CDATA[creature.ws]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26105</uri>
			</author>
			<updated>2012-04-19T12:11:08Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=59557#p59557</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK_L Подача звукового сигнала после 3 секунд зажатия ЛКМ]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=59556#p59556" />
			<content type="html"><![CDATA[<p>Спасибо, я&nbsp; соорудил такой, вроде работает<br /></p><div class="codebox"><pre><code>LButton::
   While GetKeyState(A_ThisHotkey, &quot;P&quot;)
   sleep 3000
SoundBeep, 750, 1000</code></pre></div><p>поробую ваш</p><p>думаю команда Sleep неверная?</p>]]></content>
			<author>
				<name><![CDATA[Wermat]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27138</uri>
			</author>
			<updated>2012-04-19T11:31:19Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=59556#p59556</id>
		</entry>
</feed>
