13 questions
1
vote
0
answers
161
views
Blocking Windows key from Unity doesn’t work when game is in foreground
Before we start, yes, this solution works but only outside Unity.
Intent
I'm trying to prevent the Windows key from interrupting my game. I wrote a DLL that registers a WH_KEYBOARD_LL Windows hook (...
0
votes
0
answers
405
views
Installing global WH_KEYBOARD hook from a second process breaks the behavior on the first one
I work on a product that uses accessories to send commands to the system. These accessories are basically USB keyboards and each of them has a different set of keys, on which we must act differently, ...
0
votes
0
answers
909
views
Capture Mouse movement and Keyboard press events from a Windows Service
I am currently attempting to write a Windows Service that will shutdown the computer after a predetermined amount of time of system/user inactivity. In order to do this (at both the logon screen and ...
2
votes
2
answers
2k
views
Correct logic for interpreting SetWindowsHookEx / WH_KEYBOARD_LL
What's the correct way to convert a message from SetWindowsHookEx with WH_KEYBOARD_LL into a useful representation of the key pressed?
I'm aware this will most likely involve understanding the ...
2
votes
1
answer
769
views
WH_KEYBOARD_LL hook doesn't capture input in own process
I'm using a low-level keyboard hook (WH_KEYBOARD_LL) to disable certain input, such as Alt-Tab. I create the hook on a thread with a message pump, so I can properly handle the notifications.
The hook'...
25
votes
1
answer
18k
views
Difference between WH_KEYBOARD and WH_KEYBOARD_LL?
What is the difference between the working of two? For WH_KEYBOARD_LL, I read that it Installs a hook procedure that monitors low-level keyboard input events. What is meant by low-level keyboard ...
0
votes
1
answer
6k
views
SetWindowsHookEx WH_KEYBOARD_LL not getting events
I am using SetWindowsHookEx() to create a keyboard hook. The creation seems to be successful but the procedure which is registered never gets called. Is there something I am doing wrong?
#region ...