Sreenath Posted July 4, 2006 Share Posted July 4, 2006 I am doing some mouse movements and clicks using coordinates. Is it possible to find out the resolution changes for that window. According to the resolution the coordinates are changing? Link to comment Share on other sites More sharing options...
marfdaman Posted July 4, 2006 Share Posted July 4, 2006 (edited) If you mean the screen resolution, try using @DeskopWidth and @DesktopHeight. If you mean the size of your window, try WinGetPos. Edit: and for the controls use ControlGetPos Alzo Edited July 4, 2006 by marfdaman Don't take my pic to serious...~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~You Looked, but you did not see!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Link to comment Share on other sites More sharing options...
Sreenath Posted July 4, 2006 Author Share Posted July 4, 2006 Actually I am using the Recorder to record some events. Suppose if I am changing the screen resolution and running my application. Then the positions of all controls will change, right? How can I solve this problem? The macros that u said are read only. If I want to chnage the resolution to the old one, how can i do that? Link to comment Share on other sites More sharing options...
marfdaman Posted July 4, 2006 Share Posted July 4, 2006 I think it must be possible in autoit to change the resolution using some kind of dll call oslt, but why not just perform an adlib and keep the control coordinates updated that way? Don't take my pic to serious...~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~You Looked, but you did not see!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Link to comment Share on other sites More sharing options...
tonedeaf Posted July 4, 2006 Share Posted July 4, 2006 @SreenathThere may be other better ways of achieving what you want (using ControlClick functions rather than MouseMove), but if you want to change the screen resolution, look here:http://www.autoitscript.com/forum/index.ph...ost&p=77196 Link to comment Share on other sites More sharing options...
PartyPooper Posted July 4, 2006 Share Posted July 4, 2006 See my signature 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