![]() |
KnowBrainer Speech Recognition | ![]() |
Topic Title: Script to open a web page with the non-default browser Topic Summary: Created On: 04/19/2020 11:01 AM Status: Post and Reply |
|
![]() |
![]() |
- Alan Cantor | - 04/19/2020 11:01 AM |
![]() |
![]() |
- Alan Cantor | - 04/19/2020 11:22 AM |
![]() |
![]() |
- MDH | - 04/19/2020 11:56 AM |
![]() |
![]() |
- monkey8 | - 04/19/2020 12:29 PM |
![]() |
![]() |
- Alan Cantor | - 04/19/2020 04:51 PM |
![]() |
![]() |
- Matt_Chambers | - 03/01/2022 12:04 PM |
![]() |
|
I normally don't use Chrome. But there is a site that (apparently) was not tested with Firefox, and it doesn't work with Firefox.
I'm trying to make a voice command to open only that site via Chrome.
If I do this...
AppBringUp ( "https://xxxyyyzzz.com/auth/signin" ) ...The site opens in my default browser. And if I do this:
AppBringUp ( "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" )
...Chrome opens. But I can't figure out how to combine the two. I thought the obvious solution would be something like this, but the script fails:
AppBringUp ( "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe https://xxxyyyzzz.com/auth/signin" ) |
|
|
|
![]() |
|
I thought I had figured it out, but no. This still opens in my default browser, even though I have specified Chrome.
AppBringUp ("C:\Program Files (x86)\Google\Chrome\Application\chrome.exe", "https://xxxyyyzzz.com" ) |
|
|
|
![]() |
|
How about an old-school approach: Assuming your Chrome on desktop is labelled as Google Chrome (if not, substitute that name instead): I named this command, Start Amazon, and it works, opening in Chrome, which is not my default browser.
HeardWord "open","Google Chrome" Wait 2 SendDragonKeys "Amazon.com" Wait .2 SendDragonKeys "{Enter}"
MDH
------------------------- |
|
|
|
![]() |
|
If not Mark's approach then try ShellExecute for bringing up URL addresses direct from any browser. AppBringUp only has a parameter for starting directories. Note that there is a space between "chrome.exe" and "http…"
Sub Main ShellExecute "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe http://www.knowbrainer.com/forums/forum/index.cfm" End Sub
With KnowBrainer I added a function called OpenWebsite where you can specify the browser you want the URL to open with. After opening the KnowBrainer command wizard just click on the ? then Contents | KnowBrainer Scripting Extensions where you will find scripting extensions like "OpenWebsite" and "DisplayNumbersAndClick". ------------------------- |
|
|
|
![]() |
|
Hi Mark and Lindsay,
Thank you for your suggestions. The ShellExecute approach has been working nicely! |
|
|
|
![]() |
|
I was just starting to try to figure out how to do this and came across this thread, which saved me a lot of time. Thanks, everyone!
I'm actually doing this in Vocola with ShellExecute and it works perfectly. |
|
|
FuseTalk Standard Edition v4.0 - © 1999-2023 FuseTalk™ Inc. All rights reserved.