02-23-2010 04:18 AM
Hello,
I am trying to hook multiple mouse devices using USB and Bleutooth. and I want to identify which botton on which device is pressed.
But the system is taking the same input from all the devices with the device id: Mouse and identifying all hardware as 1 same device...
How can i seperate each device ID and get the corresponding button clicks?
Thank you for any help.
02-24-2010 03:11 AM
Fadi,
i am not aware that the OS (i assume Windows XP or Vista) distinguish between the mice. I just made a simple test and connected two mice to my PC. Both mice were able to move the mousepointer at the same time without any difference: so moving mouse1 from left to right and mouse2 from right to left with the same speed, the mouspointer was stationary (what i expected).
Taking a look into the device manager brought up both mice without any possible distinction which one was mouse1 and which mouse2.....this is possibly due to both mice being Microsoft mice. Maybe you have a chance if the mice are from different vendors and you are using dedicated drivers for each mouse (don't know if this is possible though).
hope this helps,
Norbert
02-24-2010 09:10 AM
If you want the devices to remain as system pointer devices, I don't think you can do this.
The OS has a single event queue for mouse movements and AFAIK there's no device-identifying information in there.
Regards
Shane.
02-25-2010 03:44 AM
Thank you for your responses,
Actually All i care about is to identify which mouse has been clicked.I do not really care about the position of the pointer..
and I was trying trying to use some kind of mapping software that will convert each mouse klick into a keystroke (assigned keyboard keys), but it is not functioning with labview.. 😞
Any other clue for making a remote control frontpanel switch?
Thanks
03-02-2010
02:33 AM
- last edited on
03-28-2025
03:55 PM
by
Content Cleaner
I have used the example of the mousepointer in order to elaborate my thoughts: The OS itself does not provide any functionality to differ between several mice. And if this is true (if i am wrong, please could someone correct?), you have no chance with this regardless of the used ADE. So it is no "fault" of LabVIEW.
Which brings me to another thought: Having more than a single source for UI control is most often very...disturbing. I am thinking of remote access using VNC where some local guy is moving the mouse around just to anger the remote user (happens from time to time...).
So i am asking myself: Why do you need "remote frontpanel switch"? If you need remote access, you can use Remote Panel or Webservices.
hope this helps,
Norbert
03-02-2010 06:34 AM
Hello,
the idea is to remote control the front panel with just a switch not to have another PC or another front panel and not to have expensive wireless DAQ.
so this is what i am trying to achive in a very cheap way 😉
Thanks