<span style="color: #F000FF;">#include</span> <IE.au3><BR> <span style="color: #0000FF;">Local</span> <span style="color:#AA0000;">$http</span> = <span style="color: #000090;">InputBox</span>('表单信息查找', '请输入网址')<BR><span style="color: #009933;">;~ Local $Form</span><span style="color: #009933;"></span><BR><span style="color: #009933;">;~ $Http="https://passport.csdn.net/account/login"</span><span style="color: #009933;"></span><BR><span style="color:#AA0000;">$oIE</span> = _IECreate (<span style="color:#AA0000;">$Http</span>)<BR><span style="color:#AA0000;">$oForms</span> = _IEFormGetCollection (<span style="color:#AA0000;">$oIE</span>)<BR><span style="color:#AA0000;">$oFormshu</span>= "这个页面上共有" & <span style="color: #FF33FF;">@extended</span> & "个表单"<BR><span style="color: #000090;">MsgBox</span>(0, "表单信息", "这个页面上共有" & <span style="color: #FF33FF;">@extended</span> & "个表单")<BR><span style="color: #009933;">;~ FileWriteLine("表单信息.txt", 'http://mail.163.com/')</span><span style="color: #009933;"></span><BR><span style="color: #000090;">FileWriteLine</span>("表单信息.txt", '_______________________________________________________________________________')<BR><span style="color: #000090;">FileWriteLine</span>("表单信息.txt", <span style="color:#AA0000;">$Http</span>& <span style="color: #FF33FF;">@CRLF</span>& <span style="color: #FF33FF;">@CRLF</span>)<BR><span style="color: #000090;">FileWriteLine</span>("表单信息.txt", <span style="color:#AA0000;">$oFormshu</span>& <span style="color: #FF33FF;">@CRLF</span>& <span style="color: #FF33FF;">@CRLF</span>)<BR><span style="color: #009933;">;~ $oInputs = _IETagNameGetCollection($oIE, "INPUT")</span><span style="color: #009933;"></span><BR><span style="color: #009933;">;~ For $oInput In $oInputs</span><span style="color: #009933;"></span><BR><span style="color: #009933;">;~ FileWriteLine("表单信息.txt", 'Input === '&$oInput.name)</span><span style="color: #009933;"></span><BR><span style="color: #009933;">;~ FileWriteLine("表单信息.txt", " id === "&$oInput.id)</span><span style="color: #009933;"></span><BR><span style="color: #009933;">;~ FileWriteLine("表单信息.txt", " type === "&$oInput.type& @CRLF& @CRLF)</span><span style="color: #009933;"></span><BR> <span style="color: #0000FF;">Next</span><BR><span style="color: #0000FF;">For</span> <span style="color:#AA0000;">$Form</span> In <span style="color:#AA0000;">$oForms</span><BR><span style="color: #009933;">;~ For $oInput In $oInputs</span><span style="color: #009933;"></span><BR><span style="color: #009933;">;~ FileWriteLine("表单信息.txt", 'Form === '&$oInput.name& @CRLF& @CRLF)</span><span style="color: #009933;"></span><BR><span style="color: #009933;">;~ FileWriteLine("表单信息.txt", "type === "&$oInput.type& @CRLF& @CRLF)</span><span style="color: #009933;"></span><BR><span style="color: #009933;">;~ Next</span><span style="color: #009933;"></span><BR><span style="color: #009933;">;~ MsgBox(0, "表单名称", $Form.name)</span><span style="color: #009933;"></span><BR><span style="color: #000090;">FileWriteLine</span>("表单信息.txt", 'Form === '&$Form.id)<BR><span style="color: #000090;">FileWriteLine</span>("表单信息.txt", 'Form === '&$Form.name& <span style="color: #FF33FF;">@CRLF</span>& <span style="color: #FF33FF;">@CRLF</span>)<BR><span style="color:#AA0000;">$oQuerys</span> = _IEFormElementGetCollection (<span style="color:#AA0000;">$Form</span>)<BR><span style="color: #0000FF;">For</span> <span style="color:#AA0000;">$Query</span> In <span style="color:#AA0000;">$oQuerys</span><BR><span style="color: #009933;">;~ MsgBox(0, "表单控件信息", "名称:"&$Query.name & " 类型:"&$Query.type)</span><span style="color: #009933;"></span><BR><span style="color: #000090;">FileWriteLine</span>("表单信息.txt", "控件 === "&$Query.name)<BR><span style="color: #000090;">FileWriteLine</span>("表单信息.txt", " id === "&$Query.id)<BR><span style="color: #000090;">FileWriteLine</span>("表单信息.txt", "type === "&$Query.type& <span style="color: #FF33FF;">@CRLF</span>& <span style="color: #FF33FF;">@CRLF</span>)<BR><span style="color: #0000FF;">Next</span><BR><span style="color: #0000FF;">Next</span><BR><span style="color: #000090;">FileWriteLine</span>("表单信息.txt", '_______________________________________________________________________________'& <span style="color: #FF33FF;">@CRLF</span>& <span style="color: #FF33FF;">@CRLF</span>)<BR><span style="color: #009933;">;~ FileOpen('E:\文本\AU3自学手册[附件]\8-2\表单信息.txt')</span><span style="color: #009933;"></span><BR><span style="color: #009933;">;~ Run("notepad.exe")</span><span style="color: #009933;"></span><BR> |