Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 323
  • Last Modified:

Dragon NaturallySpeaking voice command to activate a particular window or application

Hello,

What is the correct syntax or method for writing a Dragon NaturallySpeaking (DNS) command to activate a particular window?

For example, in the application MS OneNote, a new page can be created by pressing Ctrl+n. Thus, assuming OneNote is active at the time, the DNS command shown in the following screenshot accomplishes that:
Fig. 1However, suppose that although OneNote is running, some other application or window is currently active. In that case it seems that a command would first need to be sent to activate OneNote and then the Ctrl+n could be used to create the new page.

Question:
      1) How would you write a DNS command to activate OneNote — or any other app or window?

By the way, I was informed that information related to this question can be found in the DNS help file shown in the following screenshot:
Fig. 2Unfortunately, I am not familiar with the programming language being used. Therefore, I am hopeful that the command for activating a window or application is fairly straightforward and after seeing an example or two, I will be able to apply it in other settings.

Thanks
0
Steve_Brady
Asked:
Steve_Brady
1 Solution
 
RobOwner (Aidellio)Commented:
I'm not a DNS programmer but I do understand scripting languages so I'll try to help as it looks like vb syntax.

Did you try just putting AppActivate before the SendSystemKeys call?

E.g.

Sub Main
AppActivate "One Note"
SendSystemKeys "{Ctrl+n}"
End Sub

Open in new window

0
 
Steve_BradyAuthor Commented:
Thanks Rob.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now