![]() |
中国DOS联盟-- 联合DOS 推动DOS 发展DOS --联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum |
| 游客 | 登录 | 注册 | 会员 | 搜索 | 中国DOS联盟 |
|
中国DOS联盟论坛 现在时间是 2026-08-12 14:21 |
共 47,811 主题排行 / 349,897 发帖 / 今日 0 篇 / 48,256 会员排行 |
| DOS批处理 & 脚本技术(批处理室) » [原创]VBS 登陆QQ。 |
| 可打印版本 1,104 / 2 |
| 第1楼 killkk | 发表于 2010-03-31 22:59 |
| 初级用户 发帖 39 积分 61 来自 come from hb--wh | |
|
[原创]VBS 登陆QQ。 On Error Resume Next
QQLogin = "C:\Progra~1\QQ2009\Bin\QQ.exe" Set WshShell = Wscript.CreateObject("Wscript.Shell") Dim QQNumber,QQPW QQNumber = Inputbox("请输入QQ号码:","登陆QQ") QQPW = Inputbox("请输入QQ密码", "登陆QQ") If QQNumber = "" Or QQPW = "" Then Msgbox "搞什么?QQ号码或密码不能为空啊,快检查下吧。", "16","通知" Wscript.Quit End If MsgBox "你要登陆的QQ是:" &QQNumber,"32","通知" Wscript.Sleep 2000 WshShell.Run QQLogin Wscript.Sleep 2000 WshShell.Sendkeys "+{Tab}" Wscript.Sleep 1000 WshShell.Sendkeys QQNumber WshShell.Sendkeys "{Tab}" Wscript.Sleep 1000 WshShell.Sendkeys QQPW Wscript.Sleep 1000 Status = Inputbox ("请选择状态:1.我在线上,2.Q我吧,3.离开,4.忙碌,5.请勿打扰,6,隐身","状态选择") Select Case Status Case "1" WshShell.Sendkeys "{Tab}" WshShell.Sendkeys "{Enter}" Wscript.Sleep 1000 WshShell.Sendkeys "{DOWN}" WshShell.Sendkeys "{Enter}" WshShell.Sendkeys "{Tab}" WshShell.Sendkeys "{Enter}" Case "2" WshShell.Sendkeys "{Tab}" WshShell.Sendkeys "{Enter}" WshShell.Sendkeys "{DOWN}" Wscript.Sleep 1000 WshShell.Sendkeys "{DOWN}" Wscript.Sleep 1000 WshShell.Sendkeys "{Enter}" WshShell.Sendkeys "{Tab}" WshShell.Sendkeys "{Enter}" Case "3" WshShell.Sendkeys "{Tab}" WshShell.Sendkeys "{Enter}" WshShell.Sendkeys "{DOWN}" Wscript.Sleep 1000 WshShell.Sendkeys "{DOWN}" Wscript.Sleep 1000 WshShell.Sendkeys "{DOWN}" Wscript.Sleep 1000 WshShell.Sendkeys "{Enter}" WshShell.Sendkeys "{Tab}" WshShell.Sendkeys "{Enter}" Case "4" WshShell.Sendkeys "{Tab}" WshShell.Sendkeys "{Enter}" WshShell.Sendkeys "{UP}" Wscript.Sleep 1000 WshShell.Sendkeys "{UP}" Wscript.Sleep 1000 WshShell.Sendkeys "{UP}" Wscript.Sleep 1000 WshShell.Sendkeys "{Enter}" WshShell.Sendkeys "{Tab}" WshShell.Sendkeys "{Enter}" Case "5" WshShell.Sendkeys "{Tab}" WshShell.Sendkeys "{Enter}" WshShell.Sendkeys "{UP}" Wscript.Sleep 1000 WshShell.Sendkeys "{UP}" Wscript.Sleep 1000 WshShell.Sendkeys "{Enter}" WshShell.Sendkeys "{Tab}" WshShell.Sendkeys "{Enter}" Case "6" WshShell.Sendkeys "{Tab}" WshShell.Sendkeys "{Enter}" WshShell.Sendkeys "{UP}" Wscript.Sleep 1000 WshShell.Sendkeys "{Enter}" WshShell.Sendkeys "{Tab}" WshShell.Sendkeys "{Enter}" Case Else Msgbox "笨蛋,出错啦!你忘了选择状态。重新来过吧。。","16","请选择状态。" WshShell.Run "cmd.exe /c taskkill /f /im qq.exe /t",VBhide End Select PS: 闭来没事,学习学习VBS脚本,呵呵。。可以完美的地方高手请不吝赐教。谢谢。。 运行时请把QQLogin路径改成自己的。 |
|
| 第2楼 killkk | 发表于 2010-04-02 00:14 |
| 初级用户 发帖 39 积分 61 来自 come from hb--wh | |
|
郁闷。咋传不了附件。。。
|
|
| 第3楼 HAT | 发表于 2010-04-02 03:12 |
| 版主 发帖 5,017 积分 9,023 | |
|
这个代码需要传附件么?
|
|
|
[ 联系联盟系统管理团队 -
中国DOS联盟 -
标准版 ] Sponsored by ifanr Inc | © 2001–2023 |