#Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Icon=filetype-blank.ico #AutoIt3Wrapper_Outfile=AC Show IE objects.exe #AutoIt3Wrapper_Compression=0 #AutoIt3Wrapper_UseUpx=n #AutoIt3Wrapper_Res_Comment=Has run on 22 nov 2011 with AutoIT3 version 3.3.6.1 and AutoIT3 version 3.3.7.21, both under Windows 7 and IE8. #AutoIt3Wrapper_Res_Fileversion=3.0.8 #AutoIt3Wrapper_Run_Tidy=y #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** ; Give the .exe an OTHER NAME than that of the .au3 (that runs from SCITE). ; #INDEX# ======================================================================================================================= ; Title .........: AC Show IE objects v3.0.au3 ; Version : 3.0.8 ; Date : 22 november 2011 ; Language ......: English en Nederlands ; Description ...: Executable to spy on the Internet Explorer Webpage-Controls. ; Author(s) .....: Martin van Leeuwen ; =============================================================================================================================== #include-once Opt("MustDeclareVars", 1); 0=no, 1=variables must be declared on forehand. Opt("WinTitleMatchMode", 1) ;1=start, 2=subStr, 3=exact, 4=advanced, -1 to -4=Nocase ; DECLARATION of variables Global $IE_oBrowser Global $x_oFrames, $x_oFrame Global $x_oForms, $x_oForm, $x_oFormObjects, $x_oFormObject Global $x_oButtons, $x_oButton Global $x_oDIVs, $x_oDIV, $x_oDIVitems, $x_oDIVitem Global $x_oTables, $x_oTable, $x_oLinks, $x_oLink, $x_oImgs, $x_oImg Global $x_iNumFrames Global $x_iNumForms Global $x_iNumFormObjects Global $x_iNumButtons, $x_Button_Arr Global $x_iNumDIVs, $x_iNumDIVitems Global $x_iNumTables, $x_Table_Arr Global $x_iNumLinks Global $x_iNumImgs Global $x_oMyError Global $C_WaitForAUTsec = 4; Number of seconds to wait, before the next window of the AUT is there. ; Can be dependent on the speed of the network at any moment. #include ; #include #include #include #include Global $SchermNaam = "????" Global $Transparancy = 220 Global $Array[1000][2] Global $Arri Global $Test1 Global $oExcel, $a, $b, $c, $d Global $IE_Show_IE_objects_out = @MyDocumentsDir & "\AC_IE_Objects_Map_View.txt" Global $IE_Title, $MarkerPos, $IE_Show_IEobjects_fileID, $NowCalcDate, $HulpString _main_viewer() Exit Func MyErrFuncViewer() ; This is my custom defined COM error handler, that is referred to in the first line of the _main_viewer() function. ; No error handling wanted EndFunc ;==>MyErrFuncViewer Func _main_viewer() $x_oMyError = ObjEvent("AutoIt.Error", "MyErrFuncViewer") ; Initialize my COM error handler _IEErrorNotify(False) ; No _IEErrorNotifications wanted (IE.au3 writes diagnostic information, warnings and errors to the console by default). ; With l (lower case L) you get a listbox with the functions in this .au3 ; With j , while the cursor is on the functioncall, you jump to the function code. IE_Start() IE_and_Frames_Show_a_Forms() IE_and_Frames_Show_b_Buttons() IE_and_Frames_Show_c_DIVs() IE_and_Frames_Show_d_Links() IE_Stop() EndFunc ;==>_main_viewer ; +++++++++++++++++++++++++++++++++++++++++++++ a_Forms +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Func IE_and_Frames_Show_a_Forms() $x_oForms = _IEFormGetCollection($IE_oBrowser) $x_iNumForms = @extended IE_and_Frames_Show_a_Forms_Report($IE_oBrowser, -1) $x_oFrames = _IEFrameGetCollection($IE_oBrowser, -1) $x_iNumFrames = @extended For $iFrame = 0 To $x_iNumFrames - 1 GetFrame($iFrame) $x_oForms = _IEFormGetCollection($x_oFrame) $x_iNumForms = @extended If $x_iNumForms > 0 Then IE_and_Frames_Show_a_Forms_Report($x_oFrame, $iFrame) EndIf Next EndFunc ;==>IE_and_Frames_Show_a_Forms ; +++++++++++++++++++++++++++++++++++++++++++++ b_Buttons +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ; http://www.w3schools.com/tags/tag_button.asp ; The