这个是可以输入中文名字的VBS脚本,但是有个问题。运行VBS后要点IE认其在前置,还会打开记事本,各位有什么办法解决?
-
- set ierunner = CreateObject("wscript.shell")
- ierunner.run "cmd /c start iexplore http://s1.pet.mop.com/",0
- wscript.sleep 3000
- ierunner.sendkeys "{TAB}"
- wscript.sleep 400
- ierunner.sendkeys "{TAB}"
- wscript.sleep 400
- ierunner.sendkeys "{TAB}"
- wscript.sleep 400
- ierunner.sendkeys "{TAB}"
- Set wshobj=WScript.CreateObject("WScript.Shell")
- code="中文名字"
- wshobj.Run "cmd.exe /c echo " & code & "| clip.exe", vbHide
- app=wshobj.Run ("C:\windows\notepad.exe")
- WScript.Sleep 2000
- wshobj.AppActivate app
- wshobj.SendKeys "^v"
- ierunner.sendkeys "{TAB}"
- ierunner.sendkeys "密码"
- ierunner.sendkeys "{TAB}"
- wscript.sleep 400
复制代码
[ 本帖最后由 twt212 于 2010-12-3 06:38 编辑 ] |