Contents - Index


OnExecuteScript

 

Type: Event

Parameters: Int HResult string jsonResultObject

 

When you execute a script via the ExecuteScript method, then when the script completes, it will raise this event.

If you called a function then results from that function are passed back to you via a json object in a string.

The parameter HResult contains the windows status if it could not succeed or S_OK (= 0) if it succeeded.

See Common HRESULT Values for some examples.

 

 

Note that if you don't want the hassle to process the json object that you probably should look into the AntViewDocument interface as it provides an easier interface to running scripts in your control.