Sign in to follow this  
Followers 0
mikedelk

Mouseclicking a nonstandard MS windows

2 posts in this topic

I have a problem with my automated testing script. Our console app is set to 640x480 with the desktop set for

1024x768. When the console app starts it is zoomed(scaled) to fit the desktop. I have found the x,y locations via the autoit window tool. Some of our testers run different console app resolution with varying desktop resolutions. I have not found a function that can tell me what the x and y zoom factor is. The pad sizes will increase or decrease in size relative to the desktop resolution.

Thanks for any help given.

Mike Delk

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

This may or may not work, but you should get it a go:

$relx=KNOWNXVALUE/640 ; Replace KNOWNXVALUE with X pos where the mouse should click (On 640*480)
$rely=KNOWNYVALUE/480 ; Replace KNOWNXVALUE with Y pos where the mouse should click (On 640*480)
$x=@DesktopWidth/$relx
$y=@DesktopHeight/$rely
Edited by monoceres

Broken link? PM me and I'll send you the file!

Share this post


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
Sign in to follow this  
Followers 0