#author("2019-01-01T13:07:29+09:00","default:ryuichi","ryuichi")
* キー連打を判定 [#w4b919b7]
~RShift::
if (A_PriorHotkey == "~RShift" && A_TimeSincePriorHotkey < 300) {
MsgBox, キー連打された!
}
Return
~RControl::
if (A_PriorHotkey <> "~RControl" or A_TimeSincePriorHotkey > 400)
{
; Too much time between presses, so this isn't a double-press.
KeyWait, RControl
return
}
MsgBox キー連打した
return
- なお、先頭の~(チルダ)は以下の意味を持つ
> ~チルダ - アンブロック
> ; 以下はaキーを押下すると、abが押下される
> ; すなわち、元のaの機能がブロックされない
> ~a::Send, b
** 参考 [#m3162603]
https://stackoverflow.com/questions/1794258/detect-a-double-key-press-in-autohotkey
- https://stackoverflow.com/questions/1794258/detect-a-double-key-press-in-autohotkey
- https://autohotkey.com/docs/commands/KeyWait.htm#Examples