How to hold a key and then another key?
-
- Posts: 1
- Joined: 10 Aug 2022, 14:00
How to hold a key and then another key?
I want to make a code that for example holds down a for 10 seconds, and when a is released immediately holds b for another 10.
Re: How to hold a key and then another key?
Welcome to this AutoHotkey forum!
Code: Select all
OnExit("done")
F3::
Send {a down}
Sleep, 10000
Send {a up}{b down}
Sleep, 10000
Send {b up}
SoundBeep, 1000
Return
done(exitReason, exitCode) {
Send {a up}{b up}
SoundBeep, 1500
}