-
Hello people,
I have made a system wide hotkey to play a sound when pressed. It works fine except when I run a game in full screen mode. Like when I run championship manager in windowed mode, the hotkey works, but when I switch the game to full screen mode, the hotkey stops functioning. I have tried to set the thread priority and prioity class for the hotkey program, but it doesn't work. Can anyone suggest anything I could do.
Chen Ling
-
there is nothing you can do.
The game probably uses direct x. If direct x hooks the keyboard, it is in fact interrupting the keys. There are two ways a game can do this. One of them doesn't send the keypresses on to windows.
-
it probably still won't work. Game Directx hooks (if that is how it did it) still have priority over all other keyboard input because they bypass the operating system apis altogether.
-
In that case, how does programs such as Roger Wilco or BattleCom work? surely there's some way of doing it.
-
Take a look at your other thread.
-
doesn't rogerwilco require directx also? It probably hooks the keyboard the same way the game does.
You can even recieve the window and menu keys before the os gets them.
-
directx? great, I know absolutely nothing on programming with directx, know anywhere I can get some info, would the directx sdk help?
-
I've just read a whole lot on directinput from msdn site. And I think this might be the answer, thanks for your help, I really appraciated.
Chen Ling