批处理文件模拟一些事情
我想打开QQ登陆界面后
双击运行批处理就会自动输入我的QQ帐号和密码
用VBS键盘模拟不就可以了
SetWshShell=WScript.CreateObject("WScript.Shell")
WshShell.Exec"C:\ProgramFiles\Tencent\QQ\QQ.exe"
WScript.Sleep500
WshShell.SendKeys"号码"
WScript.Sleep1000
WshShell.SendKeys"{TAB}"
WScript.Sleep500
WshShell.SendKeys"密码"
WScript.Sleep500
WshShell.SendKeys"{ENTER}"
如果自己的电脑记住了账号只需输密码就这样
SetWshShell=WScript.CreateObject("WScript.Shell")
WshShell.Exec"C:\ProgramFiles\Tencent\QQ\QQ.exe"
WScript.Sleep500
WshShell.SendKeys"密码"
WScript.Sleep500
WshShell.SendKeys"{ENTER}"
保存为qq.vbs路径自己改运行就可以了
相关推荐
ruanjiankaifa00 2020-05-01
ericxieforever 2020-09-29
yonggeno 2020-08-02
zk0 2020-06-07
viewerlin 2020-05-29
iamplane 2020-05-11
magic00 2020-04-15
ArLinux 2020-04-09
极客研习社 2020-03-15
xiaonao00 2020-02-16
linuxhh 2020-02-14
xiaonao00 2020-01-24
poplpsure 2020-01-21
ustbclearwang 2020-01-18
86206132 2020-01-09
孙雪峰 2019-10-24
tencentopen 2019-11-10
Norsaa 2019-11-09