<?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=10562&amp;type=atom" />
	<updated>2015-04-09T16:40:34Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=10562</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Многократное нажатие клавиши при ее зажатии.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=93154#p93154" />
			<content type="html"><![CDATA[<p>YMP, спасибо, то, что нужно!</p>]]></content>
			<author>
				<name><![CDATA[killer777909]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32984</uri>
			</author>
			<updated>2015-04-09T16:40:34Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=93154#p93154</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Многократное нажатие клавиши при ее зажатии.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=93146#p93146" />
			<content type="html"><![CDATA[<p><span style="color: green"><strong>killer777909</strong>, <a href="http://forum.script-coding.com/viewtopic.php?id=6148">не нужно</a> цитировать предыдущий пост.</span></p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2015-04-09T10:31:40Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=93146#p93146</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Многократное нажатие клавиши при ее зажатии.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=93142#p93142" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>
$x::
    While( GetKeyState( &quot;x&quot;, &quot;p&quot;) ) {
        Send, {x down}
        Sleep, 50
        Send, {x up}
        Sleep, 50
    }
    Return
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2015-04-09T03:19:20Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=93142#p93142</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Многократное нажатие клавиши при ее зажатии.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=93141#p93141" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>exobangs пишет:</cite><blockquote><p>Хм.. Держи , вроде то , что тебе нужно , таймер выставляй как тебе надо.<br /></p><div class="codebox"><pre><code>#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

Process, Priority, , high
Numpad2::ExitApp

*X::
SetTimer, timer, 0
Gosub timer
return
timer:
if GetKeyState(&quot;x&quot;, &quot;P&quot;)
    Send {x}
else
    SetTimer, timer, Off
return
</code></pre></div><p>Но и мой пример не правильный , т.к тут лучше тогда использовать коды клавиш..</p></blockquote></div><p>Хм, это то, но работает оно как-то... Не стабильно. Т.е. при зажатой клавише клики выдаются но часто происходят задержки. Хотелось бы, чтобы все было плавно.</p>]]></content>
			<author>
				<name><![CDATA[killer777909]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32984</uri>
			</author>
			<updated>2015-04-09T02:40:38Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=93141#p93141</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Многократное нажатие клавиши при ее зажатии.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=93137#p93137" />
			<content type="html"><![CDATA[<p>Хм.. Держи , вроде то , что тебе нужно , таймер выставляй как тебе надо.<br /></p><div class="codebox"><pre><code>#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

Process, Priority, , high
Numpad2::ExitApp

*X::
SetTimer, timer, 0
Gosub timer
return
timer:
if GetKeyState(&quot;x&quot;, &quot;P&quot;)
    Send {x}
else
    SetTimer, timer, Off
return
</code></pre></div><p>Но и мой пример не правильный , т.к тут лучше тогда использовать коды клавиш..</p>]]></content>
			<author>
				<name><![CDATA[exobangs]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32958</uri>
			</author>
			<updated>2015-04-08T20:10:15Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=93137#p93137</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Многократное нажатие клавиши при ее зажатии.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=93134#p93134" />
			<content type="html"><![CDATA[<p>teadrinker, исправил</p>]]></content>
			<author>
				<name><![CDATA[killer777909]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32984</uri>
			</author>
			<updated>2015-04-08T17:09:14Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=93134#p93134</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Многократное нажатие клавиши при ее зажатии.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=93132#p93132" />
			<content type="html"><![CDATA[<p><span style="color: green"><strong>killer777909</strong>, ознакомьтесь с <a href="http://forum.script-coding.com/viewtopic.php?id=6148">этой</a> темой, оформите код, как положено.</span></p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2015-04-08T16:45:03Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=93132#p93132</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Многократное нажатие клавиши при ее зажатии.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=93131#p93131" />
			<content type="html"><![CDATA[<p>Необходим скрипт, который будет многократно кликать по клавише Х (в английской раскладке), если ее зажать. Максимум, что я сумел:<br /></p><div class="codebox"><pre><code>X:: 
run: 
Send {X down} 
Sleep 1 
Send {X up} 
Sleep 1 
Goto, run

X:: 
Send {X up} 
Reload
</code></pre></div><p>Это совсем не то, что нужно. Порылся на сайте, но так и не смог ничего сделать. Прошу помощи.</p>]]></content>
			<author>
				<name><![CDATA[killer777909]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32984</uri>
			</author>
			<updated>2015-04-08T16:41:20Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=93131#p93131</id>
		</entry>
</feed>
