alienkillaz Posted December 13, 2004 Share Posted December 13, 2004 i made this script to basicly draw a smiley face in mspaint i made it on my computer wich has a desktop resolution of 1600x1200 it doesnt work on other resolutions. im trying to think of a way to make the script modify all my x an y coordinates depending on what i tell it the current computers desktop resolution is. The current resolution variables in the script are to make mspaint set iteslf to whatever x,y i define in the .ini $SettingsFile = @SCRIPTDIR & '\Settings.ini' $Sleep = IniRead ( "Settings.ini", 'Sleep', 'Sleep', "" ) Opt("MouseCoordMode", 0) Run("mspaint.exe") Sleep ( $Sleep ) WinActivate("untitled - paint", "") MouseClick("1", 21, 242, 1, 0) send("!f", 0) Send("{LEFT}{x}") send("^e", 0) send("!p", 0) send("{tab 5}") $send = IniRead ("settings.ini", "resolution", "resolution1", "" ) send($send) send("{tab}") $send = IniRead ("settings.ini", "resolution", "resolution2", "" ) send($send) send("{enter}") MouseClick("1", 34, 319, "1", 0) Mousemove(291, 205, 0) MouseClickDrag("1", 291, 205, 1306, 1051, 0) mouseclick("1", 42, 1103, "1", 0) MouseClickDrag("1", 553, 308, 730, 564, 0) MouseClickDrag("1", 852, 308, 1017, 564, 0) MouseClickDrag("1", 714, 577, 850, 705, 0) MouseClickDrag("1", 590, 831, 1054, 958, 0) Link to comment Share on other sites More sharing options...
Dalarn Posted December 13, 2004 Share Posted December 13, 2004 (edited) ...a... Edited December 20, 2004 by Dalarn Link to comment Share on other sites More sharing options...
alienkillaz Posted December 13, 2004 Author Share Posted December 13, 2004 hey thanks man ill definatly be able to figure it out with that example u made thx Link to comment Share on other sites More sharing options...
Dalarn Posted December 13, 2004 Share Posted December 13, 2004 (edited) ...a... Edited December 20, 2004 by Dalarn Link to comment Share on other sites More sharing options...
Nova Posted December 13, 2004 Share Posted December 13, 2004 I had a simular problem a while back.Read this topic, in post 9 MHZ has posted some example code.http://www.autoitscript.com/forum/index.php?showtopic=6595Or Larrys awsome DLL can also change screen resHope this helps a bit 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