Forum Home
Press F1
 
Thread ID: 47563 2004-07-30 04:01:00 Alternative mouse use Advocar (1098) Press F1
Post ID Timestamp Content User
256596 2004-07-30 04:01:00 I wish to plug an optical mouse into a 2nd PC USB port. This will be used for another program, not for mouse normal use. USB port 1 will use standard mouse functions.
When I plug it in, windows thinks it is for normal use.

How do I, 1st disable it, and 2nd, detect / read the mouse moving and or button use into another program.
Advocar (1098)
256597 2004-07-30 04:03:00 althought you can have more than one mouse plugged into the system I believe windoze only supports ONE 'onscreen' mouse...........and for example I have a touch pad and mouse plugged into my system but they both control the onscreen cursor.......I dont get two cursors lol drcspy (146)
256598 2004-07-30 04:27:00 You are probably going to collide headon with the user-fiendly aspects of modern computers . :D

Because users can't be trusted to know what they are doing, the USB system is set up to detect what is plugged in, then the OS provides the appropriate software .

You want to do something different? :D

Depending on the programme which you want to drive with this extra mouse, a serial port mouse might be able to evade the OS's clutches by telling the OS that it is disabled, then access it by direct i/o . It might even be possible with a PS/2 mouse, though that is less likely . (I don't know whether the traditional INT24 routines still exist to be intercepted when a programme needs to . )

Are you writing code yourself for this?
Graham L (2)
256599 2004-07-30 12:07:00 1) Would prefer not to use serial port as new PC's may not have one and need to interface other data. USB ports appear to be a preferred option

2) Re code. Initially basic mode where x, and y data and button response could be ported into excel spread sheet.
Advocar (1098)
256600 2004-07-30 12:34:00 Right click on My Computer and choose properties. In the Hardware Profiles copy your existing one then in one have your USB mouse disabled and in the other the other. You will then get a choice as to which profile to use on startup. mikebartnz (21)
1