Reputation: 43169
I am trying to level up the Dragon Speech Recognition which uses VBS in its Advanced Scripting Section. Using SendKeys
behaves strange though. I'd like to send curly braces:
SendKeys "{}}"
throws an error, while
SendKeys "^%0"
works flawlessly. Even SendKeys "{{}"
works but the closing curly brace is only accomplished via Shift
+ Alt
+ 0
.
The documentation clearly states {{}
and {}}
respectively but this won't work. Am I missing something here?
Upvotes: 0
Views: 508
Reputation: 16672
As suggested in the comments, you need to test this outside the confines of Dragon Speech Recognition. I say this because, with a simple test, it's clear SendKeys
behaves as expected.
Dim shell: Set shell = WScript.CreateObject("WScript.Shell")
Call shell.Run("notepad")
Call WScript.Sleep(100)
Call shell.AppActivate("Notepad")
Call shell.SendKeys("{{}")
Call WScript.Sleep(100)
Call shell.SendKeys("{}}")
Output (in Notepad):
{}
Upvotes: 1