If Ctrl+O is already assigned you should pick a different hotkey. According to the documentation at RegisterHotKey function "RegisterHotKey fails if the keystrokes specified for the hot key have already been registered by another hot key."
RegisterHotKey method not registering the hotkey with high privilege.
Smrithi Surendran
61
Reputation points
I am creating one overlay and registering hotkey( Ctrl+O) to open the overlay.
Same key ( Ctrl+O) has been mentioned for opening Microsoft edge in my system.
Currently Microsoft edge is getting opened by click on those keys but overlay is not getting opened.
While click on keys which is registering hotkey( Ctrl+O) for overlay, I want to open the overlay, not other application.
Could you please suggest here that how to identify the existing hotkey before registering and unregister it.
Or Could you please suggest a way to registering hotkey with high privilege ?
Windows development | Windows API - Win32
2,790 questions
Developer technologies | C#
11,580 questions