KnowBrainer Speech Recognition
Decrease font size
Increase font size
Topic Title: How to format application switch
Topic Summary: From Internet Explorer to an non-standard application
Created On: 03/28/2012 09:43 PM
Status: Post and Reply
Linear : Threading : Single : Branch
 How to format application switch   - jgold55 - 03/28/2012 09:43 PM  
 How to format application switch   - Lunis Orcutt - 03/28/2012 09:48 PM  
 How to format application switch   - MDH - 03/28/2012 10:10 PM  
 How to format application switch   - jgold55 - 03/28/2012 11:25 PM  
 How to format application switch   - Lunis Orcutt - 03/29/2012 11:46 AM  
 How to format application switch   - jgold55 - 04/01/2012 02:21 PM  
 How to format application switch   - Lunis Orcutt - 04/01/2012 08:28 PM  
Keyword
 03/28/2012 09:43 PM
User is offline View Users Profile Print this message


jgold55
Senior Member

Posts: 84
Joined: 09/19/2010

I am trying to produce a command whereby I will switch from Internet Explorer to a software application I use named "HealthPro8000".

I tried to use a HeardWord command format, "Switch", "to", "HealthPro8000". That did not bring up the application. I tried to use AppBringUp command with the application name in it but still didn't work.

Suggestions? Many thanks.



-------------------------
HP Pavillion dv7;
 03/28/2012 09:48 PM
User is offline View Users Profile Print this message

Author Icon
Lunis Orcutt
Top-Tier Member

Posts: 22772
Joined: 10/01/2006

Did you try HeardWord "switch","to","HealthPro8000" ? If that doesn't work, you might try other variations such as HeardWord "switch","to","HealthPro"

Should you continue to have issues with this macro, perhaps you could post your entire Advanced-Scripting command for us to review?


-------------------------


Click KB 2012 REV D to Download a 30 Day Evaluation of KnowBrainer 2012
Click SpeechStart+ to Download a 15 Day Evaluation of SpeechStart+

 03/28/2012 10:10 PM
User is offline View Users Profile Print this message

Author Icon
MDH
Top-Tier Member

Posts: 1554
Joined: 04/02/2008

Quote:
I tried to use AppBringUp command with the application name in it but still didn't work.

Right-click on the app and go to Properties to find the location pathway, then try Try AppActivate "that pathway"

MDH



-------------------------
 03/28/2012 11:25 PM
User is offline View Users Profile Print this message


jgold55
Senior Member

Posts: 84
Joined: 09/19/2010

I did try the variations of the switch to command. Did not succeed yet.

I can successfully switch vocally to the other application so I would think a HeardWord command should work.

If this will require Advanced Scripting then as I use DNS Premium and not Professional, I can't do it. Is the Try AppActivate also part of the Pro level? This also did not succeed in switching to the other application. I don't see it in the Verbal Basic manual or the list of commands in Knowbrainer.

The command script entitled "Paste Authorization Number" follows:

HeardWord "switch","to", "HealthPro8000"
Wait 300
MouseGrid 1,9
Wait 300
MouseGrid 1,1
Wait 300
MouseGrid 1,6
Wait 300
MouseGrid 1,1
Wait 300
ButtonClick 1,1
Wait 300
SendSystemKeys "{Ctrl+v}"
Wait 300
SendKeys "{F11}" 

 



-------------------------
HP Pavillion dv7;
 03/29/2012 11:46 AM
User is offline View Users Profile Print this message

Author Icon
Lunis Orcutt
Top-Tier Member

Posts: 22772
Joined: 10/01/2006

KnowBrainer also includes a handful of additional commands that unfortunately, only work in DNS Pro like Find Mouse Position which copies the precise mouse position’s x & y coordinates to the clipboard so that it can be pasted into an Advanced Scripting command. Unfortunately, we haven't found a way to duplicate the process for DNS Premium. We mention this because although the MouseGrid is effective, it is also a little slow. If you can calculate the x & y coordinates with a freeware application or possibly even Microsoft Paint, you could replace the entire MouseGrid portion of your script with a more efficient Mouse Position command such as

SetMousePosition 1,218,345
Wait 1000
ButtonClick 1,1

Note that most applications are limited to a single instance like Excel and NaturallySpeaking while other applications permit multiple instances such as Internet Explorer and NotePad. If your application happens to be a single instance app, you could substitute the 1st line of your script with something like the following (note that we don't actually know the exact address of this application):

AppBringUp "C:\Program Files (x86)\HealthPro8000.exe"

We additionally suspect you can get away with combining the last 3 lines of your code as the following:

SendSystemKeys "{Ctrl+v}{F11}"

-------------------------


Click KB 2012 REV D to Download a 30 Day Evaluation of KnowBrainer 2012
Click SpeechStart+ to Download a 15 Day Evaluation of SpeechStart+

 04/01/2012 02:21 PM
User is offline View Users Profile Print this message


jgold55
Senior Member

Posts: 84
Joined: 09/19/2010

Lunis:

 Thanks for your very helpful suggestions.

1. I was able to download a freeware app (MouseLoc) to determine mouse location.  Using Paint didn't work as there was a slight discrepancy between the coordinates in Paint and where the mouse ended up using those coordinates in HealthPro8000.

Question:  How do you determine what is pause time between one step of the command and the next?  On my currently slow computer is a longer pause better to give the slowpoke time to catch up?

2. AppBringUp only brought up the "HealthPro8000" as if it were not already in use, i.e., a new log on.  I tried SendSystemKeys Alt+Tab which actually worked at the bottom of the command to return it to the internet page I was on, but not from the internet page to "HealthPro8000" in the first line.  So, currently I just say, "switch to HealthPr8000" which works until I can figure out another way.  I also tried AppSwitch which also did not work.

 3. Combining commands worked.  Thank you.

 4. other general questions:  What is the difference between the Advanced Scripting available in DNS Pro and that of KnowBrainer?What is different about how KnowBrainer interacts with DNS Pro vs. Premium? I am unclear as to the purpose and function of "argumentative" and "listing" commands. E.g., I don't need to list something 40 times on consecutive lines.

Thanks again for the reply.

 



-------------------------
HP Pavillion dv7;
 04/01/2012 08:28 PM
User is offline View Users Profile Print this message

Author Icon
Lunis Orcutt
Top-Tier Member

Posts: 22772
Joined: 10/01/2006

Although there are a lot of similarities between KnowBrainer and NaturallySpeaking Advanced-Scripting, since you are not using DNS Pro, it would not make sense to explain the differences between the 2 types of macros unless you decide to upgrade to DNS Pro because it would require a rather lengthy explanation to answer this question.

You'll find information on arguments and listing commands when you look up “Listing” in the
VerbalBasic command manual.

As far as how they interact with NaturallySpeaking is concerned… Whether you're using DNS Pro or KnowBrainer Advanced-Scripting commands, they both hook into the NaturallySpeaking speech engine and work the same way.


-------------------------


Click KB 2012 REV D to Download a 30 Day Evaluation of KnowBrainer 2012
Click SpeechStart+ to Download a 15 Day Evaluation of SpeechStart+

Statistics
27430 users are registered to the KnowBrainer Speech Recognition forum.
There are currently 0 users logged in.
The most users ever online was 2028 on 04/05/2013 at 07:36 PM.
There are currently 156 guests browsing this forum, which makes a total of 156 users using this forum.

FuseTalk Standard Edition v4.0 - © 1999-2013 FuseTalk™ Inc. All rights reserved.