Error: Invalid hotkey

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
vege
Posts: 1
Joined: 24 May 2024, 01:17

Error: Invalid hotkey

24 May 2024, 01:23

i am a new user,the first time i test why wrong?
^&{Space}::{LCtrl} & {LShift}
User avatar
boiler
Posts: 17404
Joined: 21 Dec 2014, 02:44

Re: Error: Invalid hotkey

24 May 2024, 04:34

vege wrote: why wrong?
Many reasons. First, for the hotkey definition, you don’t use braces around the key names, and if you want to use a modifier symbol, you don’t use &, which is for a custom combination of keys (and if you do use &, you would put spaces around it). So the hotkey for Ctrl+Space is ^Space::.

It is not clear what you want to happen when you press that hotkey. Do you just want to press and release the left Shift and left Ctrl keys? Or do you want them held down as long as you hold down the hotkey combination? Or something else?

Return to “Ask for Help (v2)”

Who is online

Users browsing this forum: No registered users and 103 guests