Contents - Index - Top


OnExecuteScript

Interface AntView 

 

Type: Event

Parameters: Int HResult string jsonResultObject

 

 

After you execute a script via the ExecuteScript method, it will raise this event once the script completes.

If you used ExecuteScript to call a function the 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.

 


AntView - The MS Edge WebView2 ActiveX control Date last changed: 09/30/2024