Click to See Complete Forum and Search --> : Virtual Mouse
CamRW
May 28th, 2006, 02:11 PM
Hello, I am extremely new to the Windows API and I don't know where to start.
How would I simulate a virtual mouse click (without the mouse actually moving on screen) and implement this into an application that doesn't have a window? I did check the MSDN, but it is all so confusing right now!
Thanks,
Cameron
golanshahar
May 28th, 2006, 02:51 PM
Look at this FAQ: How can I emulate mouse events in an application? (http://www.codeguru.com/forum/showthread.php?t=377394)
Cheers
CamRW
May 29th, 2006, 09:57 AM
Look at this FAQ: How can I emulate mouse events in an application? (http://www.codeguru.com/forum/showthread.php?t=377394)
Cheers
Thank you, that helped a lot, but I'm still at loss as to how one could accomplish this without having the mouse actually move on screen. Something like a second invisible mouse.
golanshahar
May 29th, 2006, 10:51 AM
Thank you, that helped a lot, but I'm still at loss as to how one could accomplish this without having the mouse actually move on screen. Something like a second invisible mouse.
Why you don’t want to move the mouse?
Anyway you can try something like that:
save mouse coordinates.
move the mouse to the point you want to perform the click.
perform the click.
move the mouse back to the saved coordinates on phase one.
I am pretty sure it will be so fast that the mouse will do all this trip but user wont notice :D
Cheers
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.