ISXDK:Running a Script or Command File

From Lavish Software Wiki
Jump to navigation Jump to search


This tutorial teaches you how to use the RunCommandFile, RunScriptFromBuffer and RunScript function inside your extension.


  • bool RunCommandFile(char *Filename)
  • bool RunScript(char *Filename)
  • bool RunScriptFromBuffer(char *Name, char *Buffer, unsigned long buflen)


Run a command file

  • pISInterface->RunCommandFile("CommandFiles\\")

Run a script from a buffer

  • char TestScript[]="do\n{\necho hello!\nwait 30\n}\nwhile 1";
  • pISInterface->RunScriptFromBuffer("Hello",TestScript,sizeof(TestScript));

Run a script

  • pISInterface->RunScript("MyTestScripts/FirstTest/test");

End a script

  • pISInterface->EndScript("test");

See Also