set ehome=Browser("name:=我家日记")
ehome.Dialog("text:=选择要上载的文件自 testsn0301home.sn.eh").WinEdit("attached text:=文件名(&N):","nativeclass:=Edit").Set "dfadfasdfasdfasdf"
ehome.Dialog("text:=选择要上载的文件自 testsn0301home.sn.eh").WinButton("text:=打开(O)").Click
如下(测试通过): Set BBS=Browser("title:=(.)*信息系统(.)*") BBS.Dialog("text:=选择文件").WinEdit("attached text:=文件名(.)*","nativeclass:=Edit").set "C:/新建 文本文档.txt" BBS.Dialog("text:=选择文件").WinButton("text:=打开(.)*").click |
--->
其实就只有"()"这两个括号需要用“/”转译把,而“O”和“:”并无啥特别的
Dialog("已完成 0%,共 fileDownload.do").Dialog("另存为").WinEdit("attached text:=文件名/(/&N/):","nativeclass:=Edit").Set "C:/新村导入模板.xls"
Dialog("已完成 0%,共 fileDownload.do").Dialog("另存为").WinButton("text:=保存/(&S/)","nativeclass:=Button").Click
Dialog("文件下载").WinButton("text:=打开/(&O/)","nativeclass:=Button").Click