- ©«¤l
- 219
- ¥DÃD
- 24
- ºëµØ
- 0
- ¿n¤À
- 243
- ÂI¦W
- 0
- §@·~¨t²Î
- Windows10
- ³nÅ骩¥»
- Office2016
- ¾\ŪÅv
- 20
- ©Ê§O
- ¤k
- µù¥U®É¶¡
- 2012-4-18
- ³Ì«áµn¿ý
- 2022-2-7
 
|
¦^´_ 7# GBKEE
Ãö©ó¹Ï§ÎÅçÃÒCaptchaªº¤è¦¡,³o¬Ojoey0415´£¨Ñ±o[°Ñ¦Ò]¨Ó·½
¬Ý¤£À´^_^!! ¦ý¶]ÅçÃÒ½X¬O¥¿½Tªº- Public Declare Function GetClipboardData Lib "user32" (ByVal wFormat As Long) As Long
- Public Declare Function CloseClipboard Lib "user32" () As Long
- Public Declare Function OpenClipboard Lib "user32" (ByVal hwnd As Long) As Long
- Private Declare Function GlobalLock Lib "kernel32" (ByVal hMem As Long) As Long
- Private Declare Function GlobalSize Lib "kernel32" (ByVal hMem As Long) As Long
- Private Declare Function GlobalUnlock Lib "kernel32" (ByVal hMem As Long) As Long
- Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (Destination As Any, Source As Any, ByVal Length As Long)
- '°Å¶Kª©¸ê®Æ®æ¦¡©w¸q
- Private Const CF_DIB = 8
- Sub ÅçÃÒ½XÃѧO()
- Dim a(1 To 4)
- Dim img '¡]ÅçÃÒ½X¡^¹Ï¤ù
- Dim CtrlRange '«D¤å¥»ª«¥ó¶°¦X
- Dim bytClipData() As Byte '©w¸q¦ì¤¸²Õ°}¦C
- Dim arr(0 To 1260)
- Dim ts As Integer
- On Error Resume Next
- Set Regedit_XG = CreateObject("WScript.Shell") '³Ð«Ø¤@ӪŪºVBS"´ß"
- Jz = Regedit_XG.RegRead("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1407") 'Ū¨úµù¥Uªí"¦w¥þ³]¸m-Internet°Ï°ì"¤¤ªº"¤¹³\¹ï°Å¶KªO¶i¦æ½sµ{³X°Ý"³]¸m(3¡×¸T¥Î¡B0¡×±Ò¥Î¡B1¡×´£¥Ü)ì©lÈ
- Regedit_XG.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1407", "0", "REG_DWORD" 'קïµù¥Uªí"¦w¥þ³]¸m-Internet°Ï°ì"¤¤ªº"¤¹³\¹ï°Å¶KªO¶i¦æ½sµ{³X°Ý"³]¸m(3¡×¸T¥Î¡B0¡×±Ò¥Î¡B1¡×´£¥Ü)¡A¨Ï¨t²ÎÀq»{¬°"¤¹³\³X°Ý°Å¶KªO"
- With CreateObject("InternetExplorer.application") '³Ð«Ø¤@ӪŪºie
- .Visible = True 'Åýie¥i¨£
- .Navigate "http://119.145.135.38/fscx/web/loginForm.do" '¾É¯è¨ìhttp://119.145.135.38/fscx/web/loginForm.do
- Do Until .ReadyState = 4 'µ¥«Ýie§¹²¦¸ü¤J
- DoEvents
- Loop
- Set img = .Document.All.tags("img")(0) '«ü©w¡]ÅçÃÒ½X¡^¥Ø¼Ð¹Ï¤ù
- Set CtrlRange = .Document.body.createControlRange() '³Ð«Ø«D¤å¥»ª«¥ó ControlRange ¶°¦X
- CtrlRange.Add img '¦V«D¤å¥»ª«¥ó ControlRange ¶°¦X¤¤²K¥[ img ª«¥ó
- CtrlRange.execCommand "Copy", True '±q ControlRange ¶°¦X¤¤copy img ª«¥ó¡]¹Ï¤ù¡^¨ì°Å¶KªO
- Dim hMem As Long, lpData As Long
- OpenClipboard 0& '¥´¶}Ö߶KªO
- hMem = GetClipboardData(8) 'Àò±oÖ߶KªO¸ê®Æ¡A«ü©w®æ¦¡¬°¡GCF_DIB = 8
- If CBool(hMem) Then
- lpData = GlobalLock(hMem) 'Âê©w°O¾ÐÅ骫¥óhMen
- lClipSize = GlobalSize(hMem) 'Àò±oÖ߶KªO¸ê®Æ¦ì¤¸²Õ¼Æ
- If lpData <> 0 And lClipSize > 0 Then
- ReDim bytClipData(0 To lClipSize - 1) As Byte '«·s©w¸q¦ì¤¸²Õ°}¦C¤j¤p
- CopyMemory bytClipData(0), ByVal lpData, lClipSize 'Ö߶KªOÂà¤Æ¦¨¦ì¤¸²Õ°}¦C
- End If
- GlobalUnlock hMem '¸Ñ°£Âê©w°O¾ÐÅ骫¥óhMen
- End If
- CloseClipboard 'Ãö³¬Ö߶KªO
- For i = 1 To 1260 'Âk¤@¤Æ³B²z
- ts = (Val(bytClipData((i - 1) * 3 + 40)) + Val(bytClipData((i - 1) * 3 + 41)) + Val(bytClipData((i - 1) * 3 + 42))) / 3 '40¬O¹Ï¤ù¶}©l¦ì¤¸²Õ
- If ts > 150 Then
- ts = 0
- Else
- ts = 1
- End If
- arr(i) = ts
- Next i
- For i = 1 To 4
- a(i) = 0 '0
- If arr(13 * 60 + 8 + (i - 1) * 14) = 1 And arr(14 * 60 + 8 + (i - 1) * 14) = 1 Then a(i) = 1: GoTo 1 '16¦ì¦â¡A©Ò¥H¼¥H"3"RGB¦U¥e¤@¦ì¤¸²Õ¡A60¬O¼e¡A14¬O¦r¶¡¶Z¡A
- If arr(4 * 60 + 6 + (i - 1) * 14) = 1 Then a(i) = 2: GoTo 1 '2
- If arr(16 * 60 + 11 + (i - 1) * 14) = 0 Then a(i) = 3: GoTo 1 '3
- If arr(7 * 60 + 5 + (i - 1) * 14) = 1 Then a(i) = 4: GoTo 1 '4
- If arr(12 * 60 + 9 + (i - 1) * 14) = 1 Then a(i) = 5: GoTo 1 '5
- If arr(9 * 60 + 8 + (i - 1) * 14) = 1 And arr(11 * 60 + 9 + (i - 1) * 14) = 1 Then a(i) = 6: GoTo 1 '6
- If arr(16 * 60 + 13 + (i - 1) * 14) = 1 Then a(i) = 7: GoTo 1 '7
- If arr(10 * 60 + 8 + (i - 1) * 14) = 1 And arr(11 * 60 + 8 + (i - 1) * 14) = 1 Then a(i) = 8: GoTo 1 '8
- If arr(9 * 60 + 9 + (i - 1) * 14) = 1 Then a(i) = 9 '9
- 1:
- Next i
- Cells(1, 1) = a(1) & a(2) & a(3) & a(4) 'ÃѧO«áªºÅçÃÒ½X
- .Document.All.tags("INPUT")(0).Value = "1234567890" '¶ñ¼gµn¿ý¦W
- .Document.All.tags("INPUT")(1).Value = "0987654321" '¶ñ¼g±K ½X
- .Document.All.tags("INPUT")(2).Value = Cells(1, 1) '¶ñ¼gÅçÃÒ½X
- .Document.All.tags("img")(1).Click 'ÂIÀ»"µn¿ý"«ö¶s
- '.Quit 'Ãö³¬ie
- 'MsgBox "OK"
- End With
- Regedit_XG.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1407", Jz, "REG_DWORD" '«ì´_µù¥Uªí"¦w¥þ³]¸m-Internet°Ï°ì"¤¤ªº"¤¹³\¹ï°Å¶KªO¶i¦æ½sµ{³X°Ý"³]¸m(3¡×¸T¥Î¡B0¡×±Ò¥Î¡B1¡×´£¥Ü)ì©lÈ
- Set Regedit_XG = Nothing 'ÄÀ©ñVBS"´ß"
- End Sub
½Æ»s¥N½X |
|