alienkillaz 0 Posted December 31, 2004 should be so simple... run("mspaint.exe") sleep(100) WinSetState("Untitled - paint", "", @SW_MAXIMIZE) doesnt do anything so i tried this: run("mspaint.exe") WinActivate("untitled - paint", "") send("!f", 0);open file Send("{LEFT}{x}");moves the cursor to window options, press X to maXimize the window just presses ctrl+f on the desktop.. so i must be doing somehtign wrong Share this post Link to post Share on other sites
Jos 2,177 Posted December 31, 2004 should be so simple...run("mspaint.exe")sleep(100)WinSetState("Untitled - paint", "", @SW_MAXIMIZE)<{POST_SNAPBACK}>I doubt that 100 ms is enough for mspaint to start.It is probably better to do a WinWait() to wait till mspaint is started...(or put the @SW_MAXIMIZE on the run statement ...) SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Share this post Link to post Share on other sites
MHz 80 Posted December 31, 2004 WinSetState("Untitled - paint", "", @SW_MAXIMIZE)should beWinSetState("untitled - Paint", "", @SW_MAXIMIZE)Window titles and text are case sensitive. Share this post Link to post Share on other sites
alienkillaz 0 Posted December 31, 2004 solved. thanks guys Share this post Link to post Share on other sites