UPal - The Script Programming Interface
Introduction
To use the UPal Programming Interface, you must know at least one script language: JavaScript or VBScript.
You script programms are run in the UPal scripting environment.
The environment provides you with a upal object.
With the upal object, you can:
- Access the document object of the current Web page;
- Create ActiveX objects;
- Use the UPal Text Window and other facilities.
Properties of the upal Object
UPAL([out, retval] VARIANT_BOOL *pVal); Note: This property always returns true.
Methods of the upal Object
- GetDocument([out,retval] IDispatch ** pdoc);
- GetWebBrowser([out,retval] IDispatch** pWB);
- GetHitElement([out,retval] IDispatch ** pel);
- CreateObject([in] BSTR progIDorCLSID, [out,retval] IDispatch ** pobj);
- OpenTextWindow();
- WriteTextWindow([in] BSTR text, [in, defaultvalue(-1)] VARIANT_BOOL appendAtEnd);
- ClearTextWindow();
- Continue([in] long seconds);
- ShellExecute([in] BSTR pathOrURL, [out,retval] VARIANT_BOOL *ok);
- CreateProcess([in]BSTR progName, [in,defaultvalue("")] BSTR param, [out,retval] VARIANT_BOOL * ok);
- ShowHTMLDialog([in] BSTR resName, [in,defaultvalue(0)] VARIANT* par, [in, defaultvalue("")] BSTR options, [out,retval] VARIANT * pVal);
- Input([in,defaultvalue("")] BSTR prompt, [in,defaultvalue("")] BSTR defaultText, [out,retval] BSTR * textInput);
- MimicType([in] BSTR text);