KnowBrainer Speech Recognition
Decrease font size
Increase font size
Topic Title: AppSwapWith "IEXPLORE" starts two instances
Topic Summary: Cannot open Internet Explorer properly
Created On: 05/21/2008 12:13 PM
Status: Post and Reply
Linear : Threading : Single : Branch
 AppSwapWith "IEXPLORE" starts two instances   - Dan Bishop - 05/21/2008 12:13 PM  
 AppSwapWith "IEXPLORE" starts two instances   - Matt Chambers - 05/21/2008 01:06 PM  
 AppSwapWith "IEXPLORE" starts two instances   - Dan Bishop - 05/21/2008 01:32 PM  
 AppSwapWith "IEXPLORE" starts two instances   - Dan Bishop - 05/21/2008 02:12 PM  
 AppSwapWith "IEXPLORE" starts two instances   - Lunis Orcutt - 05/21/2008 08:39 PM  
 AppSwapWith "IEXPLORE" starts two instances   - RockinOut - 05/22/2008 04:07 AM  
Keyword
 05/21/2008 12:13 PM
User is offline View Users Profile Print this message


Dan Bishop
Power Member

Posts: 50
Joined: 10/12/2006

I wish to build a script command to login to an electronic court filing website.  When I build the command starting with either the statement AppBringUp "IXPLORE" or AppSwapWith "IEXPLORE" it starts two instances of Internet Explorer, and succeeding statements fail to fire.  It happens if I create the command in KnowBrainer or in Command Browser.  It also happens when I use the KnowBrainer command Goto <website>, although occasionally when Internet Explorer is already open, that/those command(s) will function properly.

 Any ideas what is wrong?

Is there a way to invoke Internet Explorer without using those statements/commands?

Dan Bishop



-------------------------
 05/21/2008 01:06 PM
User is offline View Users Profile Print this message


Matt Chambers
Top-Tier Member

Posts: 379
Joined: 10/02/2006

If you are using the Professional version, try

 AppBringUp "url" 

 Using the exact url you want to go to, including the http prefix.  Works for me without opening a new version.



-------------------------
 05/21/2008 01:32 PM
User is offline View Users Profile Print this message


Dan Bishop
Power Member

Posts: 50
Joined: 10/12/2006

Excellent idea.  Thanks.

-------------------------
 05/21/2008 02:12 PM
User is offline View Users Profile Print this message


Dan Bishop
Power Member

Posts: 50
Joined: 10/12/2006

Bizarre.  That brings up two instances also.  Must be some bug in my machine.

-------------------------
 05/21/2008 08:39 PM
User is offline View Users Profile Print this message

Author Icon
Lunis Orcutt
Top-Tier Member

Posts: 22771
Joined: 10/01/2006

Internet explorer is a little touchy. In theory and on most systems when you use AppSwapWith "IEXPLORE" it should simply call up Internet Explorer whether it's open or not but AppBringUp will always open another instance of the program.
 
The KnowBrainer Go To <website> command should also be changed to help prevent a 2nd instance of Internet Explorer from occurring. Just add Wait 10 to the 1st line as pictured below:
 

Note that this doesn't work on every system and if it doesn't work now, it may work fine after you reboot and vice versa .

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


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

 05/22/2008 04:07 AM
User is offline View Users Profile Print this message

Author Icon
RockinOut
Senior Member

Posts: 485
Joined: 07/27/2007

The following may work for you depending on your computer system and operating system. It works great for my XP Home system. I don't think it works with Vista.

You can try two methods to bypass/substitute AppBringUp and/or AppSwapWith. One is if the program is not open yet, and the other is if it's already open.

HeardWord "open","Internet","Explorer"

HeardWord "switch","to","Internet","Explorer"

For the "open" command, depending on the application, you may need to install a shortcut on the Start Menu or the Desktop.

Here is my command for Jump <website> which is similar to the one being discussed:

HeardWord "switch","to","Mozilla","Firefox"
Wait 500
SendSystemKeys "{Ctrl+t}{Ctrl+l}"
if _arg1 = "KB" then SendKeys "http://knowbrainer.com/PubForum/index.cfm?page=forum/"
if _arg1 = "no-brainer" then SendKeys "www.knowbrainer.com/"
SendKeys "{Enter}"

You can replace or edit the SendSystemKeys line above with SendKeys for faster actuation.

The SendSystemKeys line above is for Firefox; you can use the following for IE6/7 address bar focus instead:

SendKeys "{Alt+d}"

EDIT#1: corrected misspelling in command

EDIT#2: This forum always erases brackets <> when I edit--probably HTML hocus pocus. Had to re-add them in to command name.



-------------------------
1111MacBook Pro, Mac Pro, or Mac Mini --> OS X Leopard --> VMware Fusion --> XP SP2 Home --> KnowBrainer 2007 Command Software, DNS 9.5 Preferred, Steelcase Leap Chair. Current: Revolabs xTag. Previous: KnowBrainer Hybrid Plantronics CS55.
Statistics
27429 users are registered to the KnowBrainer Speech Recognition forum.
There are currently 4 users logged in.
The most users ever online was 2028 on 04/05/2013 at 07:36 PM.
There are currently 153 guests browsing this forum, which makes a total of 157 users using this forum.

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