Click here to Skip to main content
15,884,537 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have founds some resource dealing with the subject of attaining multiple cursors on windows for more than one mouse attached to the system. My requirement is a little simpler but I need some inputs on it.

1) What I want is to invoke an application (lets say IE) and do mouse activity(hovering , clicking etc) on it. All of this while there should be no disturbance to the system cursor , which should be free to be used by the user of the desktop.

2)I understand that this can not be done using the windows cursor apis as the documentation always mentions "the cursor" and there is no concept of multiple cursors inbuilt.

3)

- This leaves me to drawing a cursor on the target window. A bitmap perhaps and to move it randomly? What APIs will be of use here?
- How do I simulate the visual effects that are actually done my actual cursor movement. Do I need to send messages to the target
window like WM_MOUSEMOVE , WM_SETCURSOR etc.?
- Does sending mouse messages to the other window interfere with the mouse activities that the user is involved in currently? The
intention is not to disturb the user while the application runs.

Thanks for your inputs.
Posted
Comments
CHill60 29-May-14 6:16am    
AFAIK this is not possible. What are you actually trying to do in the other application whilst the user is doing something else?
kaushik_code 29-May-14 6:23am    
I am actually trying to browse something. I am using some .net library to go to a link ,activate and click a link , but I want to visually simulate a mouse movement there as well.
CHill60 29-May-14 6:29am    
Sounds like you are trying to do a demo. You will either have to assume control of the mouse on the users behalf, or use something that just displays what you are doing, e.g. a screencasting tool[^]
kaushik_code 29-May-14 6:34am    
Not really , the user will keep on using his desktop in normal fashion and the program will do all the browsing work in a separate IE window launched by it. The user will sometimes maximize the IE window and see the browsing happening with some visual mouse move simulation. I know its kind a weird , but that is what I am looking for.
CHill60 29-May-14 6:44am    
Yep - it's weird. What is the point of simulating the mouse movement if the user is not watching??

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900