Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有以下不发送大括号的代码。
sendkeys "a=$(script.sh)",true
但它作为 a=$script.sh 发送
大括号不见了。
尝试这个
SendKeys "a=${(}script.sh{)}", True
例如
Sub Sample() Dim RetVal RetVal = Shell("NOTEPAD.EXE ", 1) AppActivate RetVal SendKeys "a=${(}script.sh{)}", True End Sub
输出
a=$(script.sh)