#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



トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS