I'm using this code to add a global shortcut to my C# console program: https://stackoverflow.com/a/3654821/170931
It works fine with hotkeys like Ctrl+F6. However, I don't know how to use only F6 as its hotkey. When I use:
HotKeyManager.RegisterHotKey(Keys.F6);
I got the error:
Severity Code Description Project File Line Suppression State Error CS7036 There is no argument given that corresponds to the required formal parameter 'modifiers' of 'HotKeyManager.RegisterHotKey(Keys, KeyModifiers)' CALD C:...\Program.cs 425 Active
Is it possible to use only F6 as the hotkey?