views:

150

answers:

1

Quake3 has disabled the alt and windows keys. Is there any way to reenable them even while quake3 is running? I need those keys even while i have the game open.

They way i think it works is that the game registers a hotkey using RegisterHotKey and then set the handled property to true every time the key is pressed. So if you use UnRegisterHotkey on these keys on the quake3-window i guess the keys will start working again. The problem is that you have no idea what hotkey-id the disabled keys have.

Is there any way to enumerate the hotkeys that a window has registered to get all the hotkey-ids?

A: 

It's quite likely that Quake3 doesn't bother with RegisterHotKey at all, but instead uses DirectInput. In that case, it quite likely holds the keyboard in exclusive mode, which explains why the Windows key doesn't work - it's the OS which disables it. Quoting MSDN : "In exclusive mode, the Windows logo key is always disabled."

MSalters
The keys are disabled even while you don't have the window in focus. Would the above still be true then?You don't know any way to bypass this behavior as an OS-global setting?