Question Hotkeys outside form

PidgeyL

Member
Joined
Oct 20, 2010
Messages
7
Programming Experience
1-3
Hey,

I want to know how to use hotkeys outside my form, but I am terible in searching online, and I only find how to declare them, but not how to use them.

Someone here wants to help me out?

PidgeyL

ps: even when the for is invisible and not selected, the hotkeys should work.
 
Eeh, I understand most part of the code (I used the second result), but I don't know how to use the hotkeys without the alt. Can you please tell me how to register a hotkey like F5 too?
 
If it's possible then I would assume that using 0 for the third argument would mean no modifiers.

That said, you really should never use a single key as a hotkey because it's far too likely that the application that currently has focus will respond to that key itself. In my opinion, any hotkey should always involve at least two modifiers to decrease the likelihood that another app that has focus will respond to the same key combination. Personally, I would always use Ctrl+Shift+Alt+SomeOtherKey to pretty much guarantee it will be unique.
 
Ok, I'll keep that in mind. Thanks for the warning. By the way, it works if i use 0 for the argument modifiers.
Thanks again!
 
Back
Top