|
execute_program("prog","arg",wait) |
|
prog = The name of the program you want to run. arg = Any arguments you want the executing program to take into consideration. wait = Should your game / program freeze until the executing program is closed [true / false]
This function allows your game / program to run external programs. The example below will run an image viewing program called Irfanview - "i_view.exe" (always remember to give the full path and filename to the program, including any file extensions), this is the "prog" part of the function. The "arg" part allows you to send arguments to the executing program, in the below example, I'm saying "as well as running the image viewing program, I want a specific picture, "C:\Half-Life\logo.bmp" to be loaded in also." As I don't want my program to freeze until I've closed "i_view.exe", this is false.
The following example will run IrfanView and load logo.bmp.
Example
Remember: You must enclose the filename and arguments in quotes.
Revision #1 |