Click here to Skip to main content
15,896,727 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hello,

I wrote a basic application to play music tracks when certain hotkeys are pressed after assigning each hotkey to a specific track. However I have noticed the hotkeys do not function in certain games. I've tried the standard run as admin and running the game in windowed mode to no avail.

Is there a way to still allow the game to use directinput whilst simultaneously passing the events to windows in the normal way to enabled hotkeys again?

Sorry if I am missing an obvious solution I am still very new to windows desktop development and I am sure it shows.

Thank you for any help you can give.

What I have tried:

I've spent many days searching and have come to the conclusion the games that are preventing global hotkeys from functioning are most likely using the directinput exclusivity function of directX.

The only option I have found currently would be to read the rawinput and handle hotkeys within my application negating the use of global hotkeys. However this seems to get flagged as a keylogger(shocking isn't it) by most antivirus and has a rather large overhead, as such it is not ideal. The other option is to not use hotkeys in games but I'm not learning that way.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900