Code: Select all
#Requires AutoHotkey v2.0
z:: {
SetKeyDelay 50
While GetKeyState(ThisHotkey, "P")
SendEvent 'f'
}
Code: Select all
#Requires AutoHotkey v2.0
z:: {
SetKeyDelay 50
While GetKeyState(ThisHotkey, "P")
SendEvent 'f'
}
If you wish, change the number in the script. The number of milliseconds is shown there on line 4.Pressing the r button sends r normally, but after pressing it, for 20 seconds pressing r sends x instead.