Hello,
I have a program at work that runs fullscreen. It requires a lot of repetitive mouseclicks, some 6 clicks in a row on different message boxes on the screen for one particular function(sending invoice). These clicks are all in a row and allways in the same spot. I figured out how to move the cursor using:
cursor.position = new point(myX, myY)
6 times, waiting for a second at each click to give the OS time to respond to my would-be mouse clicks.
The only thing that stands in my way is how to emulate a mouse click. I have a feeling one should use the
message.Create(...)
function, but in order to do so I apparently need the handle of the window that the work program is running in. How can I get this handle, or, how can I send a message to windows in general, saying that the mouse has been clicked.
Thank you for your time.
Brian
I have a program at work that runs fullscreen. It requires a lot of repetitive mouseclicks, some 6 clicks in a row on different message boxes on the screen for one particular function(sending invoice). These clicks are all in a row and allways in the same spot. I figured out how to move the cursor using:
cursor.position = new point(myX, myY)
6 times, waiting for a second at each click to give the OS time to respond to my would-be mouse clicks.
The only thing that stands in my way is how to emulate a mouse click. I have a feeling one should use the
message.Create(...)
function, but in order to do so I apparently need the handle of the window that the work program is running in. How can I get this handle, or, how can I send a message to windows in general, saying that the mouse has been clicked.
Thank you for your time.
Brian