TA的每日心情 | 奋斗 2022-7-13 15:22 |
---|
签到天数: 1 天 连续签到: 1 天 [LV.1]测试小兵
|
兴建一个记事本,记录输入“HAPPY” 然后保存
SystemUtil.Run "C:\WINDOWS\system32\notepad.exe","","C:\Documents and Settings\jie.wu","open"
Set WshShell = CreateObject("WScript.Shell")
WshShell.AppActivate "无标题 - 记事本"
wait 2
WshShell.SendKeys "{ENTER}"
WshShell.SendKeys "H"
wait 1
WshShell.SendKeys "a"
wait 1
WshShell.SendKeys "p"
wait 1
WshShell.SendKeys "p"
wait 1
WshShell.SendKeys "y"
wait 5
WshShell.SendKeys "%FS"
模拟键盘操作“ALT+F”,在菜单里选择S (保存)
不知道怎么样能购摸拟出CTRL+S 的快捷方式。
尝试过:
WshShell.SendKeys "(^S)"
WshShell.SendKeys "^(S)"
都没有奏效
[ 本帖最后由 rivermen 于 2007-6-8 16:38 编辑 ] |
|