Command Line Plugin - v0.92
Download Now(no example) - 101KB
Description:
This plugin allows you to access and interpret all command line arguments passed to your program upon loading. This is useful for passing instructions or file paths to your program before startup.
Conditions/Actions/Expressions/Edittime Parameters:
Conditions:
For each argument - Loops through each argument passed to your program. To be used in conjunction with the conditions specified under the "For each" category.
Actions:
Execute file - Allows you to execute an external program and supply it a set of command line arguments. Arguments are separated using Microsoft Windows standards.
Expressions:
Argument count - Returns the amount of arguments passed to your program.
Get argument - Returns the entire argument at the index given in parenthesis(1-indexed).
Get argument name - Returns the name of the argument at the index given in parenthesis(1-indexed). In the argument "value=5", "value" is the name.
Get argument value - Returns the value of the argument at the index given in parenthesis(1-indexed). In the argument "value=5", "5" is the value.
Get program path - Returns the path to the currently running program, file name and all. Windows usually passes this as the first argument, but it was relegated to an expression to avoid confusion.
Current argument - Returns the entire currently iterated argument from the "For each argument" condition.
Current argument index - Returns the index of the currently iterated argument from the "For each argument" condition.
Current argument name - Returns the name of the currently iterated argument from the "For each argument" condition. In the argument "value=5", "value" is the name.
Current argument value - Returns the value of the currently iterated argument from the "For each argument" condition. In the argument "value=5", "5" is the value.
Edittime Parameters:
Start arguments - A list of arguments that can be passed to your program internally at the start of the application. This allows the easy testing of command line features without exporting the program as an EXE. Arguments are separated using Microsoft Windows standards.
Use start arguments - Determines whether the arguments specified in the "Start arguments" box will be passed to the program at the start of the application. It is recommended that this remain unchecked when your program is exported as an EXE.
Be sure to leave any feedback/bug reports/questions in the comments below.
Enjoy.