本帖最后由 xz00311 于 2010-10-19 17:08 编辑
如何在树形列表里面修改目的路径目的路径本来是C:\Program Files 咋样才能改成d:\xiaozhan
如何在树形列表里面添加一个文件夹如果图我要在这里面添加一个文件夹(已经解决了DirCreate("d:\xiaozhan"))Run("雨过天晴极速恢复.exe")
WinWait("雨过天晴极速恢复","谢谢您选择")
ControlClick("雨过天晴极速恢复","谢谢您选择",'Button2')
WinWait("雨过天晴极速恢复","重要提示")
ControlClick("雨过天晴极速恢复","重要提示",'Button5')
DriveSetLabel('D:\','');把盘符的卷标改成默认
WinWait("雨过天晴极速恢复","目的文件夹")
Do
ControlClick("雨过天晴极速恢复","目的文件夹",'Button2')
Sleep(50)
Until WinExists("浏览文件夹","")
ControlTreeView ("浏览文件夹","","SysTreeView321",'Select',"桌面|我的电脑|本地磁盘 (D:)")
ControlClick("浏览文件夹","","Button1")
WinWaitActive("雨过天晴极速恢复","目的文件夹")
Sleep(500)
ControlClick("雨过天晴极速恢复","目的文件夹","Button7")
WinWait('雨过天晴极速恢复','当前设置')
ControlClick("雨过天晴极速恢复","当前设置","Button10")
|