- ©«¤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
|
¦^´_ 6# msmplay - Option Explicit
- Const ¥Î¤á¦WºÙ = "msmplay"
- Const ¥Î¤á±K½X = "קאּ§Aªºµn¤J±K½X"
- Private Sub Ex()
- If µn¿ý¬d¬Ý = False Then µn¿ý
- End Sub
- Private Function µn¿ý¬d¬Ý() As Boolean
- With CreateObject("InternetExplorer.Application")
- .Navigate "http://forum.twbts.com/task.php?item=done"
- Do While .Busy Or .readyState <> 4: DoEvents: Loop
- µn¿ý¬d¬Ý = InStr(.Document.BODY.innertext, ¥Î¤á¦WºÙ)
- .Quit 'Ãö³¬ºô¶
- End With
- End Function
- Private Sub µn¿ý()
- Dim i As Variant, vDoc As Object
- With CreateObject("InternetExplorer.Application")
- ' .Visible = True
- .Navigate "http://forum.twbts.com/logging.php?action=login"
- Do While .Busy Or .readyState <> 4: DoEvents: Loop
- Set vDoc = .Document.getElementsByTAGName("INPUT")
- For i = 0 To vDoc.Length - 1
- If vDoc(i).Name = "username" Then vDoc(i).Value = ¥Î¤á¦WºÙ
- If vDoc(i).Name = "password" Then vDoc(i).Value = ¥Î¤á±K½X: Exit For
- Next
- Set vDoc = .Document.getElementsByTAGName("input") '.Click
- For i = 0 To vDoc.Length - 1
- If vDoc(i).Type = "checkbox" Then vDoc(i).Click: Exit For
- Next
- Set vDoc = .Document.getElementsByTAGName("button") '.Click
- For i = 0 To vDoc.Length - 1
- If vDoc(i).Name = "loginsubmit" Then vDoc(i).Click: Exit For
- Next
- i = Time
- Do
- DoEvents
- If Time > i + #12:00:30 AM# Then MsgBox .Document.Title & vbLf & " µn¤J¥¢±Ñ !": .Quit: End
- Loop Until InStr(.Document.BODY.innertext, ¥Î¤á¦WºÙ)
- .Quit
- End With
- End Sub
½Æ»s¥N½X |
|