Toggle macro with key combination Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Borkingforlife
Posts: 3
Joined: 18 Jun 2021, 10:11

Toggle macro with key combination

Post by Borkingforlife » 18 Jun 2021, 10:41

Hello, how could I toggle a macro with a key combination like CTRL + F1
Would this work?

Code: Select all

CTRL+F1::
;your code
Return

Thanks!
Ianizer
Posts: 79
Joined: 07 Mar 2021, 00:06

Re: Toggle macro with key combination  Topic is solved

Post by Ianizer » 18 Jun 2021, 14:14

To do add control to a hotkey, you must place a circumflex ( ^ ) character before the main key. Example (for Ctrl and F1):

Code: Select all

^F1:: ;this means exactly Ctrl + F1
;your code
return
I recommend checking the documentation, as the answer is usually one search away. For more info: https://www.autohotkey.com/docs/Hotkeys.htm#Symbols
If I misunderstood your question, please tell me and I'll try to help.
Last edited by gregster on 18 Jun 2021, 14:34, edited 1 time in total.
Post Reply

Return to “Ask for Help (v1)”