alienkillaz Posted December 31, 2004 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
Developers Jos Posted December 31, 2004 Developers 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.
MHz Posted December 31, 2004 Posted December 31, 2004 WinSetState("Untitled - paint", "", @SW_MAXIMIZE)should beWinSetState("untitled - Paint", "", @SW_MAXIMIZE)Window titles and text are case sensitive.
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