找回密码
 加入
搜索
查看: 1342|回复: 4

程序带验证码?有没办法提取出来?

[复制链接]
发表于 2009-6-24 00:35:45 | 显示全部楼层 |阅读模式
网页带验证码很多人研究了,程序带验证码有没人研究过
qq对战平台

$var = ControlGetText("验证码", "", "Static") 好像获取不到东西......

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?加入

×
发表于 2009-6-24 11:03:23 | 显示全部楼层
_ScreenCapture
发表于 2009-6-24 11:05:17 | 显示全部楼层
先计算坐标再
_ScreenCapture_Capture
发表于 2009-6-24 13:01:23 | 显示全部楼层
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <ScreenCapture.au3>
#include <GuiConstantsEx.au3>

Opt('MustDeclareVars', 1)
Local $hGUI, $hWnd, $hGraphic, $hBrush, $hFormat, $hFamily, $hFont, $tLayout,$Pic1,$Button1,$Label1,$Label2,$nMsg,$size 
Local $sString = "AU3论坛作品", $aInfo

GUISetState()
$hGUI  = GUICreate("窗体1", 413, 298, 302, 218)
$hWnd = WinGetHandle("窗体1")
$Pic1 = GUICtrlCreatePic(@ScriptDir & "\test.jpg", 0, 0, 409, 209, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
$Button1 = GUICtrlCreateButton("保存", 40, 240, 97, 33, $WS_GROUP)
$Label1 = GUICtrlCreateLabel("AU3论坛作品", 112, 16, 120, 28)
GUICtrlSetFont(-1, 14, 400, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0xFF0000)
$Label2 = GUICtrlCreateLabel("2009年5月27日", 264, 160, 134, 28)
GUICtrlSetFont(-1, 14, 400, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0xFF0000)
GUICtrlSetBkColor ( $Label1, $GUI_BKCOLOR_TRANSPARENT ) 
GUICtrlSetBkColor ( $Label2, $GUI_BKCOLOR_TRANSPARENT ) 
GUISetState(@SW_SHOW)


While 1
        $nMsg = GUIGetMsg()
        Switch $nMsg
                Case $GUI_EVENT_CLOSE
                        Exit
                Case $Button1
                 _Main()
                        
        EndSwitch
        WEnd

Func _Main()
    Local $hBmp
        $size = WinGetPos("窗体1")
;MsgBox(0, "活动窗口状态 (X坐标,Y坐标,宽度,高度):", $size[0] & ",    " & $size[1] & ",   " & $size[2] & ",   " & $size[3])
     _ScreenCapture_Capture (@ScriptDir & "\save.jpg", $size[0],$size[1]+24,$size[0]+$size[2]-10,$size[1]+$size[3]-91)

EndFunc 
给个例子参考下吧
 楼主| 发表于 2009-6-26 13:57:20 | 显示全部楼层
多谢,.研究去了
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-9-23 01:34 , Processed in 0.080353 second(s), 22 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表