Hello, I'm trying to make a ahk script that works when I press w and hold it presses w again and also hold until I release w.
Is that possible? I tried making it on my own but to no avail because I think it's looping itself when I press w. Or I have to just make a keybind that double presses w and hold
Double tap key + hold
Re: Double tap key + hold
Try this:
Code: Select all
#Requires AutoHotkey v2.0
~$w:: {
Send '{w down}'
KeyWait 'w'
Send '{w up}'
}
Re: Double tap key + hold
A variation is below.
Code: Select all
#Requires AutoHotkey v2.0
$w:: {
Send 'w'
If !KeyWait('w', 'T.3') {
Send '{w down}'
SoundBeep 1500
KeyWait 'w'
Send '{w up}'
SoundBeep 1000
}
}