<?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="http://forum.script-coding.com/extern.php?action=feed&amp;tid=13610&amp;type=atom" />
	<updated>2018-04-09T15:08:18Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=13610</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Спам лкм при зажатой лкм]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=124560#p124560" />
			<content type="html"><![CDATA[<p>Или через SetTimer. На примере Win+c </p><div class="codebox"><pre><code>
#c::
if winc_presses &gt; 0 ; SetTimer already started, so we log the keypress instead.
{
    winc_presses += 1
    return
}
; Otherwise, this is the first press of a new series. Set count to 1 and start
; the timer:
winc_presses = 1
SetTimer, KeyWinC, -400 ; Wait for more presses within a 400 millisecond window.
return

KeyWinC:
if winc_presses = 1 ; The key was pressed once.
{
    Run, m:\  ; Open a folder.
}
else if winc_presses = 2 ; The key was pressed twice.
{
    Run, m:\multimedia  ; Open a different folder.
}
else if winc_presses &gt; 2
{
    MsgBox, Three or more clicks detected.
}
; Regardless of which action above was triggered, reset the count to
; prepare for the next series of presses:
winc_presses = 0
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[rowe]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33506</uri>
			</author>
			<updated>2018-04-09T15:08:18Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=124560#p124560</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Спам лкм при зажатой лкм]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=124559#p124559" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>~$LButton::
    While GetKeyState(&quot;LButton&quot;, &quot;P&quot;)
	{
        Click
        Sleep 150 
    }
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[rowe]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33506</uri>
			</author>
			<updated>2018-04-09T14:48:09Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=124559#p124559</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Спам лкм при зажатой лкм]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=124548#p124548" />
			<content type="html"><![CDATA[<p>Имеется скрипт <br /></p><div class="codebox"><pre><code>[::Suspend 
LButton:: 
Loop 
{ 
SetMouseDelay 30 
Click 
If (GetKeyState(&quot;LButton&quot;,&quot;P&quot;)=0) 
Break 
}</code></pre></div><p>но он работает не корректно, точнее при первом единичном нажатии происходит 2 клика, а при втором один. Выходит, что одно из двух единичных нажатий производит 2 нажатия. Подскажите как это исправить, нодо чтобы если нажал 1 раз на ЛКМ, то произошел именно один клик, а при зажатии ЛКМ, происходил&nbsp; спам лкм.</p>]]></content>
			<author>
				<name><![CDATA[KostyaDominator]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33937</uri>
			</author>
			<updated>2018-04-09T01:25:04Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=124548#p124548</id>
		</entry>
</feed>
