ISInterface:GetCurrentScript
Jump to navigation
Jump to search
Syntax
- bool GetCurrentScript(char *buffer, unsigned long buflen)
Purpose
Retrieves the name of the currently executing script. Keep in mind that multiple scripts can be loaded and running, but internally, only one at a time is allowed to execute a portion. This is the one, if any, currently allowed to execute.
Usage
Parameters
- char *buffer
- [out] buffer to give the name of the current script
- unsigned long buflen
- [in] length of the buffer
Return Value
- bool
- Returns true on success, false on failure
Examples
char ScriptName[512]; pISInterface->GetCurrentScript(ScriptName,sizeof(ScriptName)); printf("%s is currently executing",ScriptName);