【发布时间】:2018-11-15 21:18:05
【问题描述】:
我在Java 中有一个变量(fileSource),其中包含+ 符号。我尝试使用以下代码将其粘贴到文件选择器对话框窗口中。
String autoITExecutable = "C:\\_privat\\filechooser.exe \"" + fileSource + "\"";
AutoIT 脚本,filechooser.exe:
WinWaitActive("Open")
Send($CmdLine[1])
Send("{ENTER}")
变量的值在没有+ 符号的情况下粘贴到对话窗口。
fileSource 的示例值:C:\_private\input\Files\my_upload1+1+2(original).pdf
AutoIT 像这样使用它:C:\_private\input\Files\my_upload112(original).pdf
【问题讨论】: