Jump to content
Sign in to follow this  
ZizioKriminal

..about Run ()

Recommended Posts

ZizioKriminal

..Oi! I've a little question about The command Run ()...

If I write this..:

CODE
Run (@ProgramFilesDir & "\Microsoft Games\SpiderSolitaire\SpiderSolitaire.exe", "", @SW_MAXIMIZE)

The script run Spider, but the window is not maximized.

What's Wrong..?

Thx to all..!


...THA! IMMAKKRIMINALL!

Share this post


Link to post
Share on other sites
ZizioKriminal

ZizioKriminal

WinSetState()?

thanks for your reply..!

I've tried in this way..:

CODE
Run (@ProgramFilesDir & "\Microsoft Games\SpiderSolitaire\SpiderSolitaire.exe")

WinSetState("","",@SW_MAXIMIZE)

..but nothing happens..!


...THA! IMMAKKRIMINALL!

Share this post


Link to post
Share on other sites
AlmarM

Mayby you could use this

Run("freecell.exe") ; Run Freecell
Run("mshearts.exe") ; Run Hearts
Run("winmine.exe") ; Run Minesweeper
Run("sol.exe") ; Run Patience
Run("spider.exe") ; Run Spider Solitaire

AlmarM


Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

Share this post


Link to post
Share on other sites
ZizioKriminal

Mayby you could use this

Run("freecell.exe") ; Run Freecell
Run("mshearts.exe") ; Run Hearts
Run("winmine.exe") ; Run Minesweeper
Run("sol.exe") ; Run Patience
Run("spider.exe") ; Run Spider Solitaire

AlmarM

Nothing.. I've tried this yet (I use Windows Vista):

CODE
Run ("SpiderSolitaire.exe")
but this isn't my problem... The application starts if I use

CODE
Run (@ProgramFilesDir & "\Microsoft Games\SpiderSolitaire\SpiderSolitaire.exe", "", @SW_MAXIMIZE)
But @SW_MAXIMIZE doesn't work.. Why..?

...THA! IMMAKKRIMINALL!

Share this post


Link to post
Share on other sites
ZizioKriminal

Opt("WinTitleMatchMode", 2)
Run (@ProgramFilesDir & "\Microsoft Games\SpiderSolitaire\SpiderSolitaire.exe")
WinWait("Spider") ; "Spider" is the title of the window you want to open
WinSetState("Spider", "", @SW_MAXIMIZE) ; "Spider" is the title of the window you want to open
..It works! Thanks a lot! :mellow:

...THA! IMMAKKRIMINALL!

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.