BJJ Posted February 5, 2009 Share Posted February 5, 2009 (edited) I back with new grief My program click on this point MouseClick ( "" , 1524 , 625 , 1 , 0) MouseClick ( "" , 1452 , 726 , 1 , 0) but this position be good only for screen resolution 1680 x 1050 I want make script who find use resolution and change MouseClick position Edited February 5, 2009 by Quzziy Link to comment Share on other sites More sharing options...
avery Posted February 5, 2009 Share Posted February 5, 2009 I back with new grief My program click on this point MouseClick ( "" , 1524 , 625 , 1 , 0) MouseClick ( "" , 1452 , 726 , 1 , 0) but this position be good only for screen resolution 1680 x 1050 I want make script who find use resolution and change MouseClick position Hello Quzziy. I am almost certain that you want to look at the following AutoIt built-in @Macros. @DesktopHeight Height of the desktop screen in pixels. (vertical resolution) @DesktopWidth Width of the desktop screen in pixels. (horizontal resolution) Ref: http://www.autoitscript.com/autoit3/docs/macros.htm I hope this helps. Thanks. avery www.abox.orgAvery HowellVisit My AutoIt Websitehttp://www.abox.org Link to comment Share on other sites More sharing options...
BJJ Posted February 5, 2009 Author Share Posted February 5, 2009 I know @DesktopHeight @DesktopWidth But I dont have idea how to use that becaouse program must click on this cord. when somebody have difrent screen resolution this point get change Link to comment Share on other sites More sharing options...
jvanegmond Posted February 5, 2009 Share Posted February 5, 2009 $developWidth = 1024 $runWidth = @ScreenWidth $ratio = $runWidth / $developWidth MouseClick ( "" , 1524 * $ratio , 625 * $ratio , 1 , 0) I don't know if the math is correct. It's either * $ratio or / $ratio. github.com/jvanegmond Link to comment Share on other sites More sharing options...
bobchernow Posted February 5, 2009 Share Posted February 5, 2009 $developWidth = 1024 $runWidth = @ScreenWidth $ratio = $runWidth / $developWidth MouseClick ( "" , 1524 * $ratio , 625 * $ratio , 1 , 0) I don't know if the math is correct. It's either * $ratio or / $ratio. I was also thinking that a ratio might work but I am not sure it will depending on the application you are working with. If it is just the desktop that might be fine. If it is an application, there may be some font changes as well as things the application might do differently. Is there anything specific about the target location other than the coords. Is there a bitmap or certain pixels there that could be identified? What are you trying to accomplish. Bob --------------------bobchernow, Bob ChernowWhat a long strange trip it's beenUDFs: [post="635594"]Multiple Monitor Screen Resolution Change[/post] Link to comment Share on other sites More sharing options...
Bert Posted February 5, 2009 Share Posted February 5, 2009 A better way to look at his is to ask what he needs to click on. If it is a control that has a ID, then a controlclick would work, no matter what the resolution is set to. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
BJJ Posted February 5, 2009 Author Share Posted February 5, 2009 (edited) about controlclick i have problem therehttp://www.autoitscript.com/forum/index.php?showtopic=88598but i think this is artificial Edited February 5, 2009 by Quzziy Link to comment Share on other sites More sharing options...
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