mikedelk Posted April 23, 2008 Posted April 23, 2008 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
monoceres Posted April 23, 2008 Posted April 23, 2008 (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 April 23, 2008 by monoceres Broken link? PM me and I'll send you the file!
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