|
楼主 |
发表于 2010-3-30 09:52:30
|
显示全部楼层
回复 1# newuser
还是无法"存储到指定路径下",我该怎么办?
代码如下:
Send("#r")
WinWaitActive("运行","打开(&O)")
ControlSetText("运行","打开(&O)","Edit1","notepad.exe")
ControlClick("运行","打开(&O)","Button2")
WinWaitActive("无标题 - 记事本")
Send("用于测试对于ComboBox的操作,其中还包括测试controlcommand下的setcurrentselection selectstring")
WinClose("无标题 - 记事本")
;Send("!F")
;Send("!X")
WinWaitActive("记事本","文件 无标题 的文字已经改变。")
ControlClick("记事本","文件 无标题 的文字已经改变。","Button1")
WinWaitActive("另存为","保存在")
ControlCommand("另存为","保存在","ComboBox1","SelectString","本地磁盘 (C:)")
;ControlCommand("另存为","保存在","ComboBox1","SetCurrentSelection",5)
ControlSetText("另存为","保存在","Edit1","testComboBox.txt")
ControlClick("另存为","保存在","Button2")
另外请教:
WinClose("无标题 - 记事本")
;Send("!F")
;Send("!X")
我用send()来 打开 "文件菜单"再"!X"怎么不能打开提示是否保存的窗口呢?试了近2个小时了,请大家多帮忙,谢谢! |
|