?
Solved

distinguish the data entered from two or more usb keyboards

Posted on 2004-04-05
9
Medium Priority
?
341 Views
Last Modified: 2012-06-27
is there is any way to distinguish the data entered from two or more usb keyboards in a windows application..?
0
Comment
Question by:dxbspider
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
9 Comments
 
LVL 12

Expert Comment

by:farsight
ID: 10756687
Ooooh!  Good question.  I've always thought computers should be able to have any number of any type of devices attached: monitors, keyboards, mice, pointing devices, remote controls, terminals, etc.  I'd love two have two mouse-pointers, too -- one for a mouse in each hand.

Listening!
0
 
LVL 28

Expert Comment

by:iboutchkine
ID: 10756795
How about 2 mice and an accu-point for your nose :)
0
 
LVL 7

Expert Comment

by:dante469
ID: 10758253
dxbspider,

Have similar issue and unable to find solution...  Have looked but bottom line the driver passes the keystrokes w/o any identification of souce.  Sounds like only soultion is to write something at a lower level then the driver :(...

Sorry no great solution.

Have Fun,
Dante
0
Application Discovery Service in AWS

In the era of the cloud, customers migrating away from their existing on-premise infrastructure. This requires lots of planning, strategies, and effort to identify their existing resources and determine how best to migrate.  Datacenter migrations happen in four phases -

 
LVL 22

Expert Comment

by:_TAD_
ID: 10760882

dxbspider>

I don't believe you'll find the answer that you are looking for unless you monitor each USB port yourself.

By simply monitoring keystrokes you are looking at the keyboard message queue (more or less).  

If I were in your shoes, I'd try and look at the port activity itself and determine what data is comming in from each port.

Of course, this in itself might not be very helpful either.  You can easily daisy-chain a number of items into a usb port and have them all use the same port.  If this is the case, then you need to start looking at the IRQ settings and find out when an object sends an interrupt request, which object is it?

I haven't done the research, but ultimately this may all pan out to nothing.  That is assuming that ALL key presses have the same IRQ id.  This would be okay if the two keyboards use different ports, but if both keyboards use the same port AND they both have the same IRQ settings.... I don't think it would be possible to tell the two apart.
0
 
LVL 1

Author Comment

by:dxbspider
ID: 10763824

  thanks dante and TAD for all the valuable inputs. all i wanted to know was whether it needs lower level coding but now  i know thats inevitable.  i'll focus my attention towards  win32 api classes and have a last try. meanwhile i'll keep this topic open and  all inputs are welcome from all corners.
  thanks a lot.
0
 
LVL 12

Accepted Solution

by:
farsight earned 1000 total points
ID: 10766494
You might consider USB Monitor 2.26 available at:
http://www.hhdsoftware.com/
http://www.hhdsoftware.com/usbmon.html        --- details

"HHD Software USB Monitor is an invaluable tool for all developers and engineers, who design, create and connect to PC a whole range of equipment with universal serial bus on board. This tool captures all the USB Request Blocks (URBs) transferred from the device driver to the host controller and back."

(The eval version may gt you through your problem.)

I don't know anything about it, so I'm not certain it'll be useful.

--- Other potentially useful links ---
http://www.softconnex.com/products.html
http://www.jungo.com/  --- USB driver development tools
http://www.keil.com/books/usbbooks.asp   --- books

http://www.usb.org/home --- the org that controls the USB standard(s)
http://www.usb.org/developers/docs/ --- the actual USB 2.0 specification  (1.1 spec near bottom)
http://www.usb.org/developers/developers/tools/
0
 
LVL 1

Author Comment

by:dxbspider
ID: 10781859

thanks farsight i'll look into it and will give u a feedback .
0

Featured Post

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question