今天心血来潮,想玩玩P处理代码...

QQ自动登陆的P处理文件...

环境是:WINDOWS系统+QQ2010

在网上找一了些,说什么09版以上的QQ不能自动登陆了...我就是不信...花了半个多小时吧...弄好了...现在分享给大家,,,

 @echo off
>>%tmp%\\QQLOG.vbs echo dim program
>>%tmp%\\QQLOG.vbs echo program="d:\Program Files\tencent\qq\bin\qq.exe"
>>%tmp%\\QQLOG.vbs echo rem
>>%tmp%\\QQLOG.vbs echo set Wshell=CreateObject("Wscript.Shell")
>>%tmp%\\QQLOG.vbs echo set oexec=Wshell.Exec(program)
>>%tmp%\\QQLOG.vbs echo rem
>>%tmp%\\QQLOG.vbs echo wscript.Sleep 1000
>>%tmp%\\QQLOG.vbs echo Wshell.SendKeys "{TAB}"
>>%tmp%\\QQLOG.vbs echo Wshell.SendKeys "{TAB}"
>>%tmp%\\QQLOG.vbs echo Wshell.SendKeys "{TAB}"
>>%tmp%\\QQLOG.vbs echo Wshell.SendKeys "{TAB}"
>>%tmp%\\QQLOG.vbs echo Wshell.SendKeys "{TAB}"
>>%tmp%\\QQLOG.vbs echo Wshell.SendKeys "{TAB}"
>>%tmp%\\QQLOG.vbs echo Wshell.SendKeys "{TAB}"
>>%tmp%\\QQLOG.vbs echo Wshell.SendKeys "{TAB}"
>>%tmp%\\QQLOG.vbs echo Wshell.SendKeys "QQ号码"
>>%tmp%\\QQLOG.vbs echo Wshell.SendKeys "{TAB}"
>>%tmp%\\QQLOG.vbs echo wscript.Sleep 2000
>>%tmp%\\QQLOG.vbs echo Wshell.SendKeys "QQ登陆密码"
>>%tmp%\\QQLOG.vbs echo Wshell.SendKeys "{ENTER}"
>>%tmp%\\QQLOG.vbs echo rem
%tmp%\\QQLOG.vbs
del %tmp%\\QQLOG.vbs

 

自己可以试试...

还有,大家可以结合WINDOWS系统的"任务计划"....可以达到在指定时间内自动登陆QQ...很好玩吧...自己去试试吧...