Page 1 of 1

AddGlobalKeyboardShortcut

Posted: Sun Sep 13, 2015 4:41 pm
by Sicro
With AddGlobalKeyboardShortcut created KeyboardShortcut also work if the window is not active or hidden.
This is useful, for example, if the program is minimized in the system tray, it nevertheless should be operated via shortcuts.

Re: AddGlobalKeyboardShortcut

Posted: Sun Sep 13, 2015 5:34 pm
by ts-soft
And all programs should use the same global hotkeys :lol:

Bad idea!

Re: AddGlobalKeyboardShortcut

Posted: Sun Sep 13, 2015 6:00 pm
by Vera
Global hotkeys can be very useful and reasonable.

It can surely be a welcomed feature of an application to allow setting a global hotkey for a certain feature.

It's the user who has to carry the responsibility to prevent local conflicts.

Re: AddGlobalKeyboardShortcut

Posted: Sun Sep 13, 2015 7:26 pm
by Sicro
ts-soft wrote:And all programs should use the same global hotkeys
All I know programs that support global keyboard shortcuts, offer to set the global keyboard shortcuts. Of course, fixed, non-changeable global shortcuts are bad.

In addition, global shortcuts can be set only once. Therefore AddGlobalKeyboardShortcut must supply a return value.

Re: AddGlobalKeyboardShortcut

Posted: Sun Sep 13, 2015 8:00 pm
by ts-soft
That is not a function to make native, to many limitation, to rare usage and so on.
If you really required it, so it is better to use API! Windows: RegisterHotKey