如何打印或发送大括号()使用VBA发送键 [英] How to print or send braces ( ) using VBA sendkeys
本文介绍了如何打印或发送大括号()使用VBA发送键的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
sendkeysa = $(script.sh),true
但它发送为a = $ script.sh
大括号丢失。
解决方案
尝试这个
SendKeysa = $ {(} script.sh {)},True
例如
Sub Sample()
Dim RetVal
RetVal = Shell(NOTEPAD.EXE,1)
AppActivate RetVal
SendKeysa = $ {(} script.sh {)},True
End Sub
OUTPUT
< p $ p>
a = $(script.sh)
i have following code which is not sending braces.
sendkeys "a=$(script.sh)",true
but it is sending as a=$script.sh
braces are missing.
解决方案
Try this
SendKeys "a=${(}script.sh{)}", True
For example
Sub Sample()
Dim RetVal
RetVal = Shell("NOTEPAD.EXE ", 1)
AppActivate RetVal
SendKeys "a=${(}script.sh{)}", True
End Sub
OUTPUT
a=$(script.sh)
这篇关于如何打印或发送大括号()使用VBA发送键的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文