alienkillaz 0 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) Share this post Link to post Share on other sites
Dalarn 0 Posted December 13, 2004 (edited) ...a... Edited December 20, 2004 by Dalarn Share this post Link to post Share on other sites
alienkillaz 0 Posted December 13, 2004 hey thanks man ill definatly be able to figure it out with that example u made thx Share this post Link to post Share on other sites
Dalarn 0 Posted December 13, 2004 (edited) ...a... Edited December 20, 2004 by Dalarn Share this post Link to post Share on other sites
Nova 0 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 Share this post Link to post Share on other sites