program1 = "E:\学习\登陆QQ.vbs" //--------这是一个自动登陆QQ的VBS需要一个VBS文件
program2 = "E:\学习\魔域自动登陆.vbs" //------------同上
set wshshell=createobject("wscript.shell")
set oexec=wshshell.exec(program1)
set wshshell=createobject("wscript.shell")
set oexec=wshshell.exec(program2)
登陆QQ.vbs文件内容如下:
Dim WshShell, QQPath, QQselect
QQPath="D:\Tencent\QQ\QQ.exe" //-------请选择你的QQ途径
Set WshShell=WScript.CreateObject("WScript.Shell")
WshShell.Run QQPath
WScript.Sleep 2000
WshShell.AppActivate "Q登录"
WshShell.SendKeys "+{TAB}"
WshShell.SendKeys "填写你的QQ号" //--------填在两个引号中间
WScript.Sleep 200
WshShell.SendKeys "{TAB}"
WshShell.SendKeys "填写你的QQ密码" //--------填在两个引号中间
WScript.Sleep 200
WshShell.SendKeys "{ENTER}"
魔域自动登陆.vbs文件内容如下:
dim wshshell, AutoPatchpath, AutoPatchselect
AutoPatchpath="d:\魔域\AutoPatch.exe" //---------请选择你的魔域途径
set wshshell=wscript.createobject("wscript.shell")
wscript.sleep 60000
wshshell.run Autopatchpath
wscript.sleep 9000
wshshell.sendkeys "The 48th district (Hong Kong telecommunication)"
wscript.sleep 2000
wshshell.sendkeys "Hong Kong 12 areas"
wshshell.appactivate "魔域"
wshshell.sendkeys "填写你的魔域账号" //--------填在两个引号中间
wscript.sleep 2000
wshshell.sendkeys "{TAB}"
wshshell.sendkeys "填写你的魔域密码" //--------填在两个引号中间
wscript.sleep 2000
wshshell.sendkeys "{enter}"
把上面两个文件保存到E盘的学习目录下 当然你也可以更改 |