keenez
asked on
sending mouse clicks to an application?
I'm using Windows XP. I have an application that I need to start that does not have a COM interface. After an initial setup, the application will occasionally need some mouse clicks (always the same spot relative to the application window). What I need is to automatically send a mouse click to that spot. I don't care if it does it repeatedly in a loop as clicking the area does nothing until the app enables it.
If I could get some small sample code on
1) Getting a handle to the app (I will have to find the correct app based off of title bar information)
2) How to send a mouse click to a particular spot relative to where the winapp is positioned
If I could get some small sample code on
1) Getting a handle to the app (I will have to find the correct app based off of title bar information)
2) How to send a mouse click to a particular spot relative to where the winapp is positioned
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You can use SendInput Win32 API to achieve what you are looking for
http://www.autoitscript.com/autoit3/