Search code examples
autoitshiftaltctrl

In autoit hotkey setting, how can I set the hotkey "ctrl + shift + alt + F1" to work?


I tried defining it as seen below, but it is not working.

HotKeySet("^+{ALT}{F1}", "function")

How can I make a hotkey composed of more than 4 keys with Ctrl, Shift and Alt keys?

Thank you.


Solution

  • The syntax for ALT is !:

    HotKeySet("^+!{F1}", "function")
    
    While True
        Sleep(200)
    WEnd
    
    Func function()
        ConsoleWrite("Hotkey triggered" & @CRLF)
    EndFunc   ;==>function