set wshshell=createobject("wscript.shell")
wscript.sleep 1000
wshshell.run "notepad.exe"
wscript.sleep 1000
wshshell.sendkeys "^( )"
wshshell.sendkeys "niyaoganshenme1"
用记事本编辑上面的内容,然后保存为后缀名为.vbs的文件
PS:按下ctrl+空格应切换为搜狗输入法,如果搜狗是默认输入法,wshell.sendkeys "^()"就不要
Set WS=CreateObject("WScript.Shell")WS.run "rundll32.exe shell32.dll,Control_RunDLL input.dll"
WScript.Sleep 100
WS.AppActivate("文字服务和输入语言")
WScript.Sleep 100
WS.SendKeys "{END}"
WScript.Sleep 100
WS.SendKeys "{ENTER}"
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)