- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¦^´_ 3# av8d - Option Explicit
- Dim FormDLL As String
- Sub Ie_document()
- Dim URL As String, Ie As Object, A As Object, i
- ' URL = "D:\ì©lÀÉ.htm"
- URL = "https://cas.tycg.gov.tw/casserver/login?service=http%3A%2F%2Fe.tycg.gov.tw%2Fapp%2Fportal%2Flogin"
- Set Ie = CreateObject("InternetExplorer.Application")
- With Ie
- .Navigate URL
- .Visible = True
- Do While .Busy Or .readyState <> 4: Loop
- Stop 'ºô¶¤W¿é¤J ±b¸¹,±K½X «áÄ~Äòµ{¦¡
- On Error Resume Next
- Set A = .document.ALL
- For i = 0 To A.Length - 1
- Cells(i + 1, "A") = A(i).TAGNAME
- Cells(i + 1, "B") = A(i).ID
- Cells(i + 1, "C") = A(i).Name
- Cells(i + 1, "D") = A(i).Value
- Cells(i + 1, "E") = A(i).INNERTEXT
- Cells(i + 1, "F") = A(i).Type
- Next
- '¨ì¤u§@ªí¤W¬Ý [±b¸¹,±K½X]¦bþ¤@Ó¤¸¯À¤W
- End With
- End Sub
- Sub Ie()
- Dim URL As String, Ie As Object, i
- 'URL = "D:\ì©lÀÉ.htm"
- URL = "https://cas.tycg.gov.tw/casserver/login?service=http%3A%2F%2Fe.tycg.gov.tw%2Fapp%2Fportal%2Flogin"
-
- Set Ie = CreateObject("InternetExplorer.Application")
- With Ie
- .Navigate URL
- .Visible = True
- Do While .Busy Or .readyState <> 4: Loop
- With .document.getElementsByTagName("input")
- .Item("pincode").Value = "pincode"
- .Item("pinpassword").Value = "pinpassword"
-
- '****************
- .Item("username").Value = "±bAAA¸¹"
- For i = 0 To .Length - 1
- If .Item(i).ID = "password" And .Item(i).Name = "password" Then
- '¤j¤p¼g¦³¤À§O
- .Item(i).Value = "TEST"
- End If
- Next
- '********************
- .Item("pinbutton").Click '³o¸Ì§ÚµLªk´ú¸Õ
- End With
- End With
-
- End Sub
½Æ»s¥N½X |
|