Each ActiveX control will expose it's own properties and these are displayed in the autocomplete feature. This makes it really easy to start coding for a control.
In addition to this it is useful to know which events are associated with a control. With this, we are able to react to events occurring in the control. DesktopX provides a tool to do just this. In the Script Editor, go to the Script Menu and select 'Event Wizard'.
Select the event you want to add and click OK to add it to your script. Click 'Done' when you have added all the events you want to.
You can now add script to that event. For example:
Sub Control_DocumentComplete(pDisp, URL)
Msgbox "Finished downloading the page " & URL
End Sub
Now, you will be advised when the page is completely loaded. |