Jump to content

Convert position(x,y) to ControlClick position

Recommended Posts

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?

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...