AnderRom Posted February 7, 2018 Posted February 7, 2018 Is it possible to convert coordinate on screen to ControlClick based on a window position? On Chrome, when it is maximized it start with with X = 0, y= 8 and goes to the end of the screen, so it is pretty easy to convert. but I was looking for an automated way to do it with any browser... Here is what I'm currently using to Google Chrome maximized: ControlClick($ExampleTitle, "", "", "primary", 1, $x, ($y-8)) If Chrome is not maximized I can just remove the -8, so pretty easy... My problem is to use with other browsers. I can't use MouseClick because I can't move the mouse. Any suggestions?
Zedna Posted February 7, 2018 Posted February 7, 2018 $aPos = WinGetPos($ExampleTitle, "") If Not @error Then ControlClick($ExampleTitle, "", "", "primary", 1, $aPos[0]+$x, $aPos[1]+($y-8)) Resources UDF ResourcesEx UDF AutoIt Forum Search
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now