Jump to content

@sw_maximize macro not working


Recommended Posts

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

Link to comment
Share on other sites

  • Developers

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...