Exitlaunch (Slash Command): Difference between revisions

From Unofficial Homecoming Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 3: Line 3:
{{SlashCommandArticle|command=exitlaunch|options=FilePath|note=Set program to run when game exits}}
{{SlashCommandArticle|command=exitlaunch|options=FilePath|note=Set program to run when game exits}}


* ''FilePath'' is the path to the executable file or program to run.
* ''FilePath'' is the path to the executable file or program to run.
* The file path is case sensitive, and the name of the file that is to be executed usually needs to start with a capital letter whether it has one or not on your computer. For example, <code>C:\Windows\<span style="background: yellow;">n</span>otepad.exe</code> will '''not''' work, but <code>C:\Windows\<span style="background: yellow;">N</span>otepad.exe</code> will.
* The file path must be enclosed in quotation marks (" ") if it contains any blank spaces.
* Used internally for issue preloads, but can be set to execute any program when you finish playing.
* The command will work with any Windows executable file (.exe, .bat, .cmd, .com, etc.).
* The command will work with any Windows executable file (.exe, .bat, .cmd, .com, etc.).
* Does not work with .lnk shortcut files.
* Does not work with .lnk shortcut files.
Line 9: Line 12:


==[[Command Line Parameters|Command Line Parameter]]==
==[[Command Line Parameters|Command Line Parameter]]==
The command can be made more or less permanent by running it automatically at log-in as a [[Command Line Parameters|Command Line Parameter]]. For example, <code>-exitlaunch "C:\games\TicTacToe\ttt.exe"</code>
The command can be made more or less permanent by running it automatically at log-in as a [[Command Line Parameters|Command Line Parameter]]. For example,<BR /> <code>-exitlaunch "C:\games\TicTacToe\Ttt.exe"</code>




==Example==
==Example==
  /exitlaunch "C:\games\TicTacToe\ttt.exe"
  /exitlaunch "C:\games\TicTacToe\Ttt.exe"





Latest revision as of 05:02, 20 February 2024

Slash command

/exitlaunch FilePath

Set program to run when game exits

  • FilePath is the path to the executable file or program to run.
  • The file path is case sensitive, and the name of the file that is to be executed usually needs to start with a capital letter whether it has one or not on your computer. For example, C:\Windows\notepad.exe will not work, but C:\Windows\Notepad.exe will.
  • The file path must be enclosed in quotation marks (" ") if it contains any blank spaces.
  • Used internally for issue preloads, but can be set to execute any program when you finish playing.
  • The command will work with any Windows executable file (.exe, .bat, .cmd, .com, etc.).
  • Does not work with .lnk shortcut files.


Command Line Parameter

The command can be made more or less permanent by running it automatically at log-in as a Command Line Parameter. For example,
-exitlaunch "C:\games\TicTacToe\Ttt.exe"


Example

/exitlaunch "C:\games\TicTacToe\Ttt.exe"


Also