Difference between revisions of "ObjectType:script"
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
*[[DataType:int|int]] '''RunningTime''': Number of milliseconds since this script began | *[[DataType:int|int]] '''RunningTime''': Number of milliseconds since this script began | ||
*[[DataType:filepath|filepath]] '''CurrentDirectory''': Current working directory for this script | *[[DataType:filepath|filepath]] '''CurrentDirectory''': Current working directory for this script | ||
+ | *[[DataType:bool|bool]] '''Paused''': Scripts current paused state | ||
== Methods == | == Methods == | ||
Line 12: | Line 13: | ||
*'''Squelch''': Squelches most output from this script (excluding most errors and generally excluding Echo) | *'''Squelch''': Squelches most output from this script (excluding most errors and generally excluding Echo) | ||
*'''Unsquelch''': Unsquelches | *'''Unsquelch''': Unsquelches | ||
− | + | *'''Pause''': Pauses this script | |
+ | *'''Resume''': Resumes this script | ||
== Returns == | == Returns == | ||
TRUE | TRUE |
Revision as of 23:26, 19 September 2005
Contents
Description
Members
- string Filename: Filename of this script
- variable Variable[name]: A given script-scope variable
- int RunningTime: Number of milliseconds since this script began
- filepath CurrentDirectory: Current working directory for this script
- bool Paused: Scripts current paused state
Methods
- End: Ends execution of this script
- QueueCommand[command]: Inserts a command in the script's command queue
- Squelch: Squelches most output from this script (excluding most errors and generally excluding Echo)
- Unsquelch: Unsquelches
- Pause: Pauses this script
- Resume: Resumes this script
Returns
TRUE
Examples
Display if a script is running
- echo ${Script[VentriloHUD](exists)}
- Output
TRUE
End a script
- Script[VentriloHUD]:End
- Script:End
- Note: When used as a command within a script will end the script
Set a variable inside a currently running script
- Script[KillCount].Variable[TotalKills]:Set[0] - Will set the variable called TotalKills in the currently running script called KillCount to zero.