ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] ½Ð±Ð¦p¦ó¦Û°Êµn¿ý

[µo°Ý] ½Ð±Ð¦p¦ó¦Û°Êµn¿ý

¥Ø¼Ð¬O¤@Áä¦Û°Êµn¤J¤½¥q¤ººô§ì¨ú¦U¶µ¸ê®Æ¡C§Ú¥ý±q¥»½×¾ÂµÛ¤â¡A¦A³Â·Ð¦U¦ì¤j¤j¨ó§UÀ°¬Ý¤@¤U§Úªºµ{¦¡½X¦³¦ó¿ù»~¡C                                                                                      Sub login()



With CreateObject("InternetExplorer.Application")

.Visible = True
.Navigate "http://forum.twbts.com/logging.php?action=login"


Do While .Busy Or .ReadyState <> 4: DoEvents: Loop


With .document
.all("username") = "*****"
.all("password") = "*****"

.all("loginsubmit").Click

End With
End With

End Sub

¦^´_ 1# chiangtien.lin
¸Õ¸Õ¬Ý
  1. Sub Ex_¥Î¤áµn¿ý()
  2.     Dim i As Integer, vDoc As Object
  3.     With CreateObject("InternetExplorer.Application")
  4.          .Visible = True
  5.         .Navigate "http://forum.twbts.com/logging.php?action=login"
  6.         Do While .Busy Or .readyState <> 4: DoEvents: Loop
  7.         Set vDoc = .Document.getElementsByTAGName("INPUT")
  8.         For i = 0 To vDoc.Length - 1
  9.             If vDoc(i).Name = "username" Then vDoc(i).Value = "¥Î¤á¦WºÙ"           '**¥Î¤á¦WºÙ
  10.             If vDoc(i).Name = "password" Then vDoc(i).Value = "'¥Î¤á±K½X"           '**¥Î¤á±K½X
  11.         Next
  12.         Set vDoc = .Document.getElementsByTAGName("input") '.Click
  13.         For i = 0 To vDoc.Length - 1
  14.             If vDoc(i).Type = "checkbox" Then vDoc(i).Click
  15.         Next
  16.         Set vDoc = .Document.getElementsByTAGName("button") '.Click
  17.         For i = 0 To vDoc.Length - 1
  18.             If vDoc(i).Name = "loginsubmit" Then vDoc(i).Click
  19.         Next
  20.         Do
  21.             DoEvents
  22.         Loop Until InStr(.Document.body.innertext, "¥Î¤á¦WºÙ")
  23.        ' .Quit
  24.     End With
  25. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¥»©«³Ì«á¥Ñ n7822123 ©ó 2020-4-15 23:39 ½s¿è

¦^´_ 1# chiangtien.lin


¦n¹³¬O­n²Ä0­Ó¤~¦æ~ .all("username")(0)="AAAA"  §Ú¤]ÁÙ¦b¾Ç²ß¤¤

¥H¤U¬O±qG¤jªºµ{¦¡­×§ïªº¡A¦³ºë·Çªº§ä¨ì±±¨î¶µ¦WºÙ
  1. Sub ³Â»¶°Q½×°Ï_¥Î¤áµn¤J()
  2.     Dim i As Integer, vDoc As Object
  3.     URL$ = "http://forum.twbts.com/logging.php?action=login"
  4.   
  5.     ±b¸¹$ = "AAA"
  6.     ±K½X$ = "CC"
  7.    
  8.     With CreateObject("InternetExplorer.Application")
  9.         .Visible = True
  10.         .Navigate URL
  11.         Do While .Busy Or .readyState <> 4: DoEvents: Loop
  12.       
  13.         .Document.getElementsByName("username")(0).Value = ±b¸¹
  14.         .Document.getElementsByName("password")(0).Value = ±K½X
  15.         .Document.getElementsByName("cookietime")(0).Status = True '°O¦í§Úªºµn¤Jª¬ºA¥´¤Ä
  16.         .Document.getElementsByName("loginsubmit")(0).Click  'ÂIÀ»µn¤J
  17.         
  18.         Do
  19.             DoEvents
  20.         Loop Until InStr(.Document.body.innertext, ±b¸¹)
  21.        ' .Quit
  22.     End With
  23. End Sub
½Æ»s¥N½X
µ{¦¡¬O¨Ì»Ý¨D¼gªº¡A»Ý¨Dªí¹F¤£²M·¡
©ÎªÌ¨S¦³¤W¶Çªþ¥ó¡A·R²ö¯à§U

TOP

        ÀR«ä¦Û¦b : ªY½à§O¤H´N¬O²øÄY¦Û¤v¡C
ªð¦^¦Cªí ¤W¤@¥DÃD