Jump to content
Sign in to follow this  

[help] how to make launcher?

Recommended Posts


anyone here know how to make game launcher like online games?

help please! newbie here... :) thanks in advance!

Share this post

Link to post
Share on other sites

File==>Programs==>AutoIt==>Help File

In the help file look at the Run command.

First you need to make a rough draft of what you want it to do. Do you want a GUI? Do you want it to be Command Line based? You need to know these things before you start building. Remember the help file is your friend. Everything you need to make a launcher can be found there



Runs an external program.

Run ( "filename" [, "workingdir" [, flag[, standard_i/o_flag]]] )


filename The name of the executable (EXE, BAT, COM, or PIF) to run.

workingdir [optional] The working directory.

flag [optional] The "show" flag of the executed program:

@SW_HIDE = Hidden window

@SW_MINIMIZE = Minimized window

@SW_MAXIMIZE = Maximized window

standard_i/o_flag [optional] Provide a meaningful handle to one or more STD I/O streams of the child process.

1 ($STDIN_CHILD) = Provide a handle to the child's STDIN stream

2 ($STDOUT_CHILD) = Provide a handle to the child's STDOUT stream

4 ($STDERR_CHILD) = Provide a handle to the child's STDERR stream

Return Value

Success: The PID of the process that was launched.

Failure: Depends on RunErrorsFatal; see Remarks.


To run DOS (console) commands, try Run(@ComSpec & " /c " & 'commandName', "", @SW_HIDE)

After running the requested program the script continues. To pause execution of the script until the spawned program has finished use the RunWait function instead.

By default the script will terminate with a fatal error if the Run function fails. To set @error 1, @extended to GetLastError() Windows API and return 0 as an indication of failure, see AutoItSetOption.

Providing the Standard I/O parameter with the proper values permits interaction with the child process through the StderrRead, StdinWrite and StdoutRead functions. Combine the flag values (or use $STDERR_CHILD, $STDIN_CHILD & $STDOUT_CHILD, defined in Constants.au3) to manage more than one stream.

Cleaning of defined streams can be done with ProcessClose().


RunAsSet, RunErrorsFatal (Option), RunWait, ShellExecute, ShellExecuteWait, StderrRead, StdinWrite, StdoutRead, ProcessClose


Run("Notepad.exe", "", @SW_MAXIMIZE)

Basic Example

$FileOpenDialog = FileOpenDialog("Launch Game...", @DesktopDir, "Executables (*.exe)", 1)
If Not @Error Then Run($FileOpenDialog)

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