Blame | Last modification | View Log | Download
; *******************************************************; Example 1 - Trap COM errors so that 'Back' and 'Forward'; outside of history bounds does not abort script; (expect COM errors to be sent to the console); *******************************************************;GUICtrlCreateLabel("ActiveX Object Example",10,30,140,20)$ie = ObjCreate("Shell.Explorer.2")$GUIActiveX = GUICtrlCreateObj($ie,10,50,480,340)$ie.navigate("http://www.nu.nl"); Continuous Loop to check for GUI EventsWhile 1$guimsg = GUIGetMsg()SelectCase $guimsg = $dummybuttonGUICtrlSendToDummy($dummy)Case $guimsg = $dummyMsgBox(0,"Dummy Example","You have clicked the dummy button.")Case $guimsg = $GUI_EVENT_CLOSEExitEndSelectWend