本帖最后由 无名蜘蛛 于 2010-9-21 07:46 编辑 #include<guiconstantsex.au3>
$qqlogin = GUICreate("QQ登陆器",150,400,-1,-1)
$qqpath = IniRead("qqlogin.ini","qqlogin","path","qq.exe")
$qqmz1 = IniRead("qqlogin.ini","figure","mz1","qq1111")
$button1 = GUICtrlCreateButton($qqmz1,30,30,90,25)
$button2 = GUICtrlCreateButton("号码二",30,70,90,25)
$button3 = GUICtrlCreateButton("号码三",30,110,90,25)
$button4 = GUICtrlCreateButton("号码四",30,150,90,25)
$button5 = GUICtrlCreateButton("号码五",30,190,90,25)
$button6 = GUICtrlCreateButton("号码六",30,230,90,25)
$button7 = GUICtrlCreateButton("号码七",30,270,90,25)
$button8 = GUICtrlCreateButton("号码八",30,310,90,25)
GUISetState()
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $button1
Run($qqpath)
$qq1 = IniRead("qqlogin.ini","figure","qq1","")
$pw1 = IniRead("qqlogin.ini","figure","pw1","")
WinWaitActive("[CLASS:TXGuiFoundation]")
ControlSend("QQ2010","","[CLASS:ATL:30A45018; INSTANCE:1]",$qq1)
ControlSend("QQ2010","","[CLASS:Edit; INSTANCE:1]",$pw1)
Send("{enter}")
EndSwitch
WEnd
他只会输入账号密码不会输,
还有种方法是按顺序输入,可是QQ以前登陆过账号,打开默认光标在密码输入框,如果新装的QQ,没有任何登陆记录的话,默认光标在号码输入框,按顺序输入是不可以实现的,我用controlClick也不成功,难道是他把那个EDIT加密了吗? |