Jump to content
Sign in to follow this  
alienkillaz

@sw_maximize macro not working

Recommended Posts

alienkillaz

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

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 ...)


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        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

WinSetState("Untitled - paint", "", @SW_MAXIMIZE)

should be
WinSetState("untitled - Paint", "", @SW_MAXIMIZE)

Window titles and text are case sensitive.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.