我在用controlsettext时为什么不能更改路径
本帖最后由 zsw1021 于 2010-6-7 10:27 编辑自己写的WinRAR_YlmF.exe自动安装,可是到ControlSetText时,无法更改路径,请高手指点
run ("WinRAR_YlmF.exe")
WinWaitActive("用户帐户控制")
send("{Tab}")
send("{enter}")
winwaitactive("WinRAR 3.71 雨林木风版")
ControlSetText("WinRAR 3.71 雨林木风版","目标文件夹","Edit1","D:\Program Files\WinRAR")
ControlClick("WinRAR 3.71 雨林木风版","","Button2","left","1")
WinWaitActive("WinRAR 简体中文版安装")
send("{enter}")
WinWaitActive("WinRAR 简体中文版安装","感谢使用 WinRAR 简体中文版!")
send("{enter}")
WinWaitActive("WinRAR")
WinClose("WinRAR") 把ControlSetText换成ControlSend试试!!! 同意上面的 改了,可是还是不行,不知道是什么问题 先看看手动能不能更改. 把ControlClick("WinRAR 3.71 雨林木风版","","Button2","left","1")
改成ControlClick("WinRAR 3.71 雨林木风版","","Button2")
或ControlClick("WinRAR 3.71 雨林木风版","","Button2","left",1) 回复 6# zjw767676
还是无法解决,controlsettext,无法发送文本,我用记事本演示controlsettext发送文本
Run("notepad.exe")
WinWait("无标题 -")
ControlSetText("无标题 -", "", "Edit1", "New Text Here,中文也可以" )
这个就成功了 我也碰到类似问题,求解
页:
[1]