0

KK I've been using mouse_eventf for clicking buttons in another application..

To do this I've done GetClientRect to get the size of the client and then click the button at a certain distance from one edge of the client...


What I noticed that is that if the user's computer is slow as hell and I run this command, it just moves onto the next command..

I want it to wait until a window shows up ON SCREEN.. or detect if the button was clicked in another app.

Or is there a way to read text in the other app??

P.S. Originally I was going to do something like:
If FindBitmapIn(x,y, x2, y2) then Mouse_Eventf(x,y,0,0,0); But I realized thats kinda impossible in c++

Or if FindWindow(0, "asfsd") then Mouse_Eventf(x,y,0,0,0); but the reason this doesnt work is that even when the window is minimized to the systray, it will move the mouse no matter what.

2
Contributors
1
Reply
2
Views
6 Years
Discussion Span
Last Post by Ancient Dragon
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.