oskros / MF_run_counter

MF run counter developed for Diablo 2. Allows users to collect stats about their run times and found items, and can track your holy grail progress
MIT License
80 stars 18 forks source link

Disable hotkeys if Diablo isn't the active window #3

Closed rgoliveira closed 3 years ago

rgoliveira commented 4 years ago

It's common to leave the game open and do something else (Discord, search something, etc.). When out of the game, it's undesirable to trigger the hotkeys. As it happens, the hotkeys I use in the run counter clash with a few other apps' (and even Windows').

oskros commented 4 years ago

It would be easy to implement a feature that makes hotkeys not fire when Diablo is not in focus. However it would be more difficult to actually unbind and rebind them every time focus is changed from Diablo - this I don't have a good idea of how to do.

If I go with the first suggestion, the app would still overwrite hotkeys for other applications when out of focus, but pressing them would not have any effect. Is this solution acceptable for you? Otherwise I will think a bit more on what could be done.

oskros commented 3 years ago

Decided this wont be made. It will cause issues in other parts of the program. Sorry about that