Code: Select all
1::
RepeatKey := !RepeatKey
If RepeatKey
SetTimer, SendTheKey, 2000
Else
SetTimer, SendTheKey, Off
Return
SendTheKey:
SendInput {Numpad1}
SendInput {Numpad2}
SendInput {Numpad3}
SendInput {Numpad4}
SendInput {Numpad5}
Return
Code: Select all
1::
RepeatKey := !RepeatKey
If RepeatKey
SetTimer, SendTheKey, 2000
Else
SetTimer, SendTheKey, Off
Return
SendTheKey:
SendInput {Numpad1}
SendInput {Numpad2}
SendInput {Numpad3}
SendInput {Numpad4}
SendInput {Numpad5}
Return
Code: Select all
1::
RepeatKey := !RepeatKey
SoundPlay, % RepeatKey ? "PathToSound1.wav" : "PathToSound2.wav"
If RepeatKey
SetTimer, SendTheKey, 2000
Else
SetTimer, SendTheKey, Off
Return
SendTheKey:
loop, 5
SendInput {Numpad%A_Index%}
Return
Users browsing this forum: Cmecu and 64 guests