Jump to content

different resolution screen while using MouseClick command


Recommended Posts

Trying to deal with MouseClick() on different resolutions is no fun, and I'd only consider it as a last resort.

If you can use ControlClick() that would be a lot easier and more reliable. It depends on what program you're trying to interact with though.

Link to comment
Share on other sites

So.... what program and control is it that you're trying to click on?

If you really just want to figure out MouseClick(), it's tricky. When program windows are resized or displayed in different resolutions the positioning of the controls doesn't always scale linearly, depending on how they're aligned. To start, you need to find out how the X & Y positioning changes, through some testing, on different resolutions. Then figure out some kind of forumula that can match those changes, as well as (hopefully) correctly anticipates the control positions on resolutions you haven't tested.

Mainly, expect some trial and error.

Edited by bwochinski
Link to comment
Share on other sites

Hi,

Thanks for your help!

I have only 2 different resolutions for now

On one coordinates are: 811, 386, while on the 2nd are: 1098, 455

let's assume the difference is liniar.. so how to build the formnula? what I need doing now with this formula?

Thanks!

Noa :-)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...