naturallyspeaking

What is the equivalent of this step-by-step voice command in advanced scripting?


I defined a step-by-step voice command:

enter image description here

What is the equivalent of this step-by-step voice command in advanced scripting?

I tried:

Sub Main
    SendKeys "^{Pad4}"
End Sub

and

Sub Main
    SendSystemKeys "{Ctrl}({NumKey4})"
End Sub

and

Sub Main
    SendSystemKeys "^{NumKey4}"
End Sub

None of them works.


Solution

  • Sub Main
        SendSystemKeys "{Ctrl+NumKey4}"
    End Sub
    

    There may be other variants that work depending on the language of your OS and Windows version. If the above does not work, try this:

    Sub Main
         SendSystemKeys "{Ctrl+Num4}"
    End Sub
    

    You can only use the ^ for Ctrl with SendKeys. SendSystemKeys & SendDragonKeys need the full form (Ctrl).