The situation :
I have two Keyboards connected to a single computer (both with USB cable).
Two problems :
- How can I get keyboard inputs when my application is not focused
- Get all inputs from specific keyboard and block its inputs for other applications.
I want two Users to work with one Computer with two Keyboards, one works just with my application, with one specific Keyboard and another user, can use the other Keyboard while working with the other software. Keyboard ports never changes.
is it possible friends ? and how can i do that?
nIcE cOw
24.6k8 gold badges54 silver badges147 bronze badges
asked Jun 29, 2013 at 8:03
hamze torabzade
7,3416 gold badges36 silver badges43 bronze badges
-
I am not sure if you can differentiate between the keyboards. but it should be possible to read input and prevent it from getting delivered to other apps using system hooks. msdn.microsoft.com/en-us/library/windows/desktop/… And msdn.microsoft.com/en-us/library/windows/desktop/… . To be honest why do you need two keyboards if there is only one person. Maybe some key bindings like vim or Emacs might do the trick.Osama Javed– Osama Javed2013年06月29日 08:14:17 +00:00Commented Jun 29, 2013 at 8:14
-
thanks for reply, there are two person, one of them never see monitor and just work with one keyboard to call numbers in a queue.hamze torabzade– hamze torabzade2013年06月29日 09:16:34 +00:00Commented Jun 29, 2013 at 9:16
1 Answer 1
http://www.codeproject.com/Articles/17123/Using-Raw-Input-from-C-to-handle-multiple-keyboard
I used this for a project a while back, this should do it.
Sign up to request clarification or add additional context in comments.
Comments
lang-cs