Skip to content

Instantly share code, notes, and snippets.

@kaleai
Created May 3, 2018 03:41
Show Gist options
  • Save kaleai/bde8733b27235036d47d7537ea107490 to your computer and use it in GitHub Desktop.
Save kaleai/bde8733b27235036d47d7537ea107490 to your computer and use it in GitHub Desktop.
双击右侧ALT
;------------ For Double RAlt -----------
#Persistent
$RAlt::
if key_presses > 0
{
key_presses += 1
return
}
key_presses = 1
SetTimer, KeyPressed, 200
return
KeyPressed:
SetTimer, KeyPressed, off
if key_presses = 1
{
Gosub singleClick
}
else if key_presses = 2
{
Gosub doubleClick
}
key_presses = 0
return
singleClick:
send {RAlt}
return
doubleClick:
WinMinimize, A
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment