[原创+整理]也谈批处理登陆QQ
其使用的代码如下:
dim
program
program="C:\Program
Files\Tencent\qq\QQ.exe"
set
Wshell=CreateObject("Wscript.Shell")
set
oexec=Wshell.Exec(program)
wscript.Sleep
2000
Wshell.SendKeys
"123456abcd"
wscript.Sleep
1000
Wshell.SendKeys
"{TAB}"
Wshell.SendKeys
"123456"
Wshell.SendKeys
"{ENTER}"
Wshell.SendKeys
"{ENTER}"
@echo off
echo dim
program>%temp%\QLogon.VBS
echo
program="C:\Program Files\Tencent\qq\QQ.exe"
>>%temp%\QLogon.VBS
echo set
Wshell=CreateObject("Wscript.Shell")
>>%temp%\QLogon.VBS
echo set
oexec=Wshell.Exec(program)
>>%temp%\QLogon.VBS
echo
wscript.Sleep 2000
>>%temp%\QLogon.VBS
echo
Wshell.SendKeys "123456abcd"
>>%temp%\QLogon.VBS
echo
wscript.Sleep 1000
>>%temp%\QLogon.VBS
echo
Wshell.SendKeys "{TAB}"
>>%temp%\QLogon.VBS
echo
Wshell.SendKeys "123456"
>>%temp%\QLogon.VBS
echo
Wshell.SendKeys "{ENTER}"
>>%temp%\QLogon.VBS
echo
Wshell.SendKeys "{ENTER}"
>>%temp%\QLogon.VBS
%temp%\QLogon.VBS
del
%temp%\QLogon.VBS /q
qq.exe /START
QQUIN:123456 PWDHASH:qQZEnVdp+nNh1+zGqj9tKA== /STAT:41
@echo off
set
path=D:\crid\QQ ::这里是设置你的QQ.exe所在的文件路径,你就修改成你的就是了
qq.exe /START
QQUIN:123456 PWDHASH:qQZEnVdp+nNh1+zGqj9tKA== /STAT:41
exit