Table of Contents
script_ExecuteDescriptionRun a script string. Supported script languages currently include Python (via cdPython plugin) and ZeoScript (via ZeoScript plugin). Function prototypebool CExtAPI::script_Execute(const char* lpLangName, const char* lpScript, ZVAR hRval); Arguments
Return valueFalse if an error occurred, and true otherwise. ExamplesRunning a ZeoScriptThe following example runs a ZeoScript to open a “save file as…” dialog (using the 'file.SaveDlg' extension function), and stores the return value in the FileName string variable: CzStr FileName; theAPI.script_Execute("zs", "file.SaveDlg bmp NULL \"Bitmap image (*.bmp)|*.bmp|\"", (ZVAR)FileName); CommentsScript return valuesAt the time of writing1), only the ZeoScript plugins supports the setting of the hRval return value. 1)
2007/04/16 21:05
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Share Alike 3.0 Unported
|