各位高手,求VBS脚本

来源:百度知道 编辑:UC知道 时间:2024/05/12 10:46:57
可以定时打开QQ并且让它自己输入用户名和密码的
脚本里有一句好象是什么“presskey.......”

dim program
program="c:\Program Files\Tencent\qq\QQ.exe"
set Wshell=CreateObject("Wscript.Shell")
set oexec=Wshell.Exec(program)
wscript.Sleep 2000
Wshell.AppActivate "QQTang"
Wshell.SendKeys "+{TAB}"
Wshell.SendKeys "QQ号码"
wscript.Sleep 1000
Wshell.SendKeys "{TAB}"
Wshell.SendKeys "QQ密码"
wscript.Sleep 1000
Wshell.SendKeys "{ENTER}"