C++ code to manage 3 keypads connected to one PC?
-
3 users are connected to one pc using 3 usb keypads. A record is shown and each user have to input a number like 7.7 or 600 or 7.5 then they will press ENTER. Done. So as an example problem: user2 starts to type 7 and user1 starts typing 5. the computer is already getting 75. You can see the problem. I need a utility/code to isolate the input. I have seen it in an auction software and also using xbox playing games. In the auction software 3 black boxes are seen in the PC. Once a user starts the black box associated with that user, turn gray. Same as the other users. When all users have pressed ENTER, All boxes are revealed with the entries. Until now we only had to enter one digit per box, so 3 keypads were no problem. The system right now have the 3 boxes in the screen.
-
3 users are connected to one pc using 3 usb keypads. A record is shown and each user have to input a number like 7.7 or 600 or 7.5 then they will press ENTER. Done. So as an example problem: user2 starts to type 7 and user1 starts typing 5. the computer is already getting 75. You can see the problem. I need a utility/code to isolate the input. I have seen it in an auction software and also using xbox playing games. In the auction software 3 black boxes are seen in the PC. Once a user starts the black box associated with that user, turn gray. Same as the other users. When all users have pressed ENTER, All boxes are revealed with the entries. Until now we only had to enter one digit per box, so 3 keypads were no problem. The system right now have the 3 boxes in the screen.
This article presents a solution for this problem in C# but relies on P/Invoke-ing, so it should be rather easy to re-implement it in C++: Using Raw Input from C# to handle multiple keyboards[^] I mentioned that article first because I know its solution works, but there are a lot more articles on keyboard hooking, some of which use C++, so there might be an even simpler solution for you: https://www.google.com/search?q=codeproject++low-level+keyboard+hook+in+C%23&ie=utf-8&oe=utf-8#q=codeproject+keyboard+hook[^]
If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson
-
This article presents a solution for this problem in C# but relies on P/Invoke-ing, so it should be rather easy to re-implement it in C++: Using Raw Input from C# to handle multiple keyboards[^] I mentioned that article first because I know its solution works, but there are a lot more articles on keyboard hooking, some of which use C++, so there might be an even simpler solution for you: https://www.google.com/search?q=codeproject++low-level+keyboard+hook+in+C%23&ie=utf-8&oe=utf-8#q=codeproject+keyboard+hook[^]
If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson
That is the best news I got. Thanks, many thanks. It definitely address the objective. Now is time to digest all of it. Thanks again. I will keep you posted
-
That is the best news I got. Thanks, many thanks. It definitely address the objective. Now is time to digest all of it. Thanks again. I will keep you posted
You're welcome! Good luck :)
If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson
-
You're welcome! Good luck :)
If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson
Can you contact me? How can I contact a member?
-
Can you contact me? How can I contact a member?
I would prefer it if you post follow-up questions here :) That would probably also be more helpful for you, since I'm not too much into C++; so other members could help out then.
If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson
-
I would prefer it if you post follow-up questions here :) That would probably also be more helpful for you, since I'm not too much into C++; so other members could help out then.
If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson
I am not that good in c+++ and was hoping to find some one to help me to interface the code from Steve Messer and Emma Burrow. It would be great to reach either one. But it seems difficult.
-
I am not that good in c+++ and was hoping to find some one to help me to interface the code from Steve Messer and Emma Burrow. It would be great to reach either one. But it seems difficult.
In that case I would suggest to look at the other search results (articles) to find a solution that's already in C++
If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson
-
In that case I would suggest to look at the other search results (articles) to find a solution that's already in C++
If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson
Excellent point.