Hi! I need to combine function keys with numbers that should be activated in a certain order with a pause in between. So if, for example, I press ^#1::, I want the program to perceive that the F7 button is pressed, do a pause, and then the 1 button. How do I do that? I can only find examples for V1, but I want to use V2 for this.
Regards / Jimmy
Combine function keys and numbers with a hotkey
-
- Posts: 2
- Joined: 31 Mar 2023, 12:27
Re: Combine function keys and numbers with a hotkey
Welcome to this AutoHotkey forum!
Code: Select all
#Requires AutoHotkey v2.0
#^1:: {
SetKeyDelay 200
SendEvent '{F7}1'
}
Re: Combine function keys and numbers with a hotkey
Hallo,
or:or to get the Sleep uninterruptibility of SetKeyDelay:
or:
Code: Select all
#Requires AutoHotkey v2.0
#^1::Send("{F7}"), Sleep(200), Send("1")
Code: Select all
#Requires AutoHotkey v2.0
#^1::Critical("On"), Send("{F7}"), Sleep(200), Send("1")
-
- Posts: 2
- Joined: 31 Mar 2023, 12:27
Re: Combine function keys and numbers with a hotkey
Hi! How do you differentiate between "send" and "sendEvent"?