ISInterface:RunScriptFromBuffer
Jump to navigation
Jump to search
Syntax
- bool RunScriptFromBuffer(char *Name, char *Buffer, unsigned long buflen)
Purpose
Allows the use of running a script from buffer instead of a file
Usage
Parameters
- char *Name
- [in] Name of the script (will be prepended by "Buffer:")
- char *Buffer
- [in] Buffer that contains a complete script
- unsigned long buflen
- [in] Length of the buffer
Return Value
- bool
- Returns true on success, false on failure
Examples
- char TestScript[]="do\n{\necho hello!\nwait 30\n}\nwhile 1";
- pISInterface->RunScriptFromBuffer("Hello",TestScript,sizeof(TestScript));