ExecuteEXE
ExecuteEXE

Runs the specified executable.

bSuccess = mySpecial.ExecuteEXE( Path_To_EXE, Command_Line, Flags )
bSuccess = mySpecial.ExecuteEXE( Path_To_EXE, Flags )

Return value
TRUE if the EXE was run successfully, otherwise FALSE.

Parameters
  • Path_To_EXE
    An absolute path to the EXE file to run. Note that some system programs, such as Notepad, do not need the entire location specified
  • Command_Line
    A command line to send to the EXE
  • Flags
    A list of values taken from the following:
    • EXECUTE_PAUSE
      Pauses the game while the program is run
    • EXECUTE_HIDE
      Hides the game while the program is run. Note, this will also pause the game
Comments

This can be used to display simple help files, i.e.
ExecuteEXE('Notepad.exe','C:\Help.txt',EXECUTE_PAUSE);
Will open Help.txt in notepad, while pausing the game. When notepad is closed, the game will resume.
Note, if the game is paused by this method, it cannot be unpaused until the exe has finished running, and will un-pause automatically at this point.



JAM © 2005 no one in partiular
Project started by David Evans in 2005