Reputation: 3
I am using Autohotkey to hold down 2 keys at the same time, when doing it by hand it is much faster then my code. Did I make a mistake?
F7::
SetKeyDelay, 0
Toggle := !Toggle
If (Toggle)
Send {1 down}{2 down}
Else
Send {1 up}{2 up}
Return
Upvotes: 0
Views: 1632
Reputation: 81
#maxThreadsPerHotkey, 2
setKeyDelay, 50, 50
setMouseDelay, 50
banana:=0
$F7::
banana:=!banana
while (banana=1)
{
send, {1}{2}
sleep, 100
}
Return
esc::ExitApp
From this tread:
Upvotes: 1
Reputation: 7973
I'm not sure what you want to do. This script seems to press and hold down 1 and 2, until you press F7 again and both keys are released again. Is that what you wanted?
Upvotes: 0