Difference between revisions of "ObjectType:script"

From Lavish Software Wiki
Jump to navigation Jump to search
Line 17: Line 17:
  
 
== Examples ==
 
== Examples ==
if ${Script[WoWBot](exists)} - Check if a script is running
+
*if ${Script[WoWBot](exists)} - Check if a script is running
Script:End - When used as a command within a script will end the script
+
*Script:End - When used as a command within a script will end the script
Script[WoWBot].Variable[DoSkinning]:Set[FALSE] - Will set the variable called DoSkinning in the currently running script called WoWBot to false.
+
*Script[WoWBot].Variable[DoSkinning]:Set[FALSE] - Will set the variable called DoSkinning in the currently running script called WoWBot to false.
  
 
== See Also ==
 
== See Also ==

Revision as of 15:49, 28 July 2005

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
  • string CurrentDirectory: Current working directory for this script

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

Returns

TRUE

Examples

  • if ${Script[WoWBot](exists)} - Check if a script is running
  • Script:End - When used as a command within a script will end the script
  • Script[WoWBot].Variable[DoSkinning]:Set[FALSE] - Will set the variable called DoSkinning in the currently running script called WoWBot to false.

See Also