2016-09-05 23:37:07 +00:00
|
|
|
rapid_switch := false
|
|
|
|
|
|
|
|
~*CapsLock:: rapid_switch := !rapid_switch
|
|
|
|
|
|
|
|
~*LButton::
|
|
|
|
If rapid_switch = 1
|
|
|
|
{
|
|
|
|
Loop
|
|
|
|
{
|
|
|
|
GetKeyState, var, LButton, P
|
|
|
|
If var = U
|
|
|
|
{
|
|
|
|
Break
|
|
|
|
}
|
|
|
|
Send {LButton}
|
|
|
|
sleep 20
|
|
|
|
}
|
2019-12-10 20:46:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
~*RButton::
|
|
|
|
If rapid_switch = 1
|
|
|
|
{
|
|
|
|
Loop
|
|
|
|
{
|
|
|
|
GetKeyState, var, RButton, P
|
|
|
|
If var = U
|
|
|
|
{
|
|
|
|
Break
|
|
|
|
}
|
|
|
|
Send {RButton}
|
|
|
|
sleep 20
|
|
|
|
}
|
2016-09-05 23:37:07 +00:00
|
|
|
}
|