Opening URL
Submitted by timtranslates on Mon, 04/14/2008 - 10:20.
I have a series of commands like the following in my Global macros:
open BBC sport = ShellExecute ("http://news.bbc.co.uk/sport/default.stm") ;
They work fine, but then next time I speak Dragon often freezes for about 10-20 seconds, with the little symbol that comes up when you speak on permanently. Anybody know a way to prevent this from happening? I want to have my commands in the global macros so I can open a URL without having to switch to Firefox first.
Tim


Just to clarify: This
Just to clarify: This command will open a browser window and navigate to the site?
If so, then it could be your browser and/or derivative software (e.g, browser plug-ins, spyware, AV, etc.) are working, which is why you see the delay. Have you checked the effect of waiting to see how that affects response time? What is it that you typically say after opening a browser window? Another browser window? Some option on the new browser window? Do different types of utterances engender different response times (allowing for possible time-dependent effects noted above)?
One way to check on what might be going-on behind the window you see, install something like Process Explorer and open it before you issue one of your commands. Process Explorer is MS' official Task-Manager-On-Steroids replacement:
http://www.microsoft.com/technet/sysinternals/Security/ProcessExplorer.m...
Bruce
Bruce
PS: I'm a little confused
PS: I'm a little confused because I don't program in Vocola, but the instructions from DNS Pro require you to provide an application, as in this template:
ShellExecute "commandLine"[, windowStyle[, "directory" ["applicationName"]]]
It doesn't work for me in DNS Pro unless I specify the command I want to use, but when I give it that it brings up my browser, Firefox, and the site I specify, and I'm able to dictate immediately thereafter, so I'm fairly confident that the problem you are encountering is somehow or other related to what else is going on on your machine.
One thing to look into along with the other things I suggested is whether or not the behavior changes depending on what site you go to and/or what browser you use. There are a surprising number of variables that may affect the outcome when you look into it!
HTH,
Bruce
I think roughly commandLine
I think roughly commandLine can be anything you could type to the run dialog box. Among other things, if you give it the name of a file, Windows will try and open that file. This also apparently works for URLS...
Hello, If you want to do
Hello,
If you want to do this with natlink, the unimacro grammar _folders provides just this.
see unimacro page on folders grammar.
See for example part of the configuration file:
For example if you call website unimacro (from any place, it is a global command) it is opened in your favourite browser.
greetings, Quintijn
I have now installed
I have now installed Unimacro, and the behaviour is much better.
timtranslates wrote: I have
I have now installed Unimacro, and the behaviour is much better.
Interesting -- and good for you, I guess. But it sounds like some extra digging for Quintijn
Bruce
Firefox
What if you use ShellExecute to bring up Firefox, then paste the url into the address line? That's what I do, using Professional.
Well, yes, that's exactly
Well, yes, that's exactly what I meant to say you had to do in Pro. But I guess the question is why timtranslates' example works in Vocola. If its built into Unicola, then maybe its built into Vocola too.
Bruce
PS: Well, actually the real question is why tim is getting the delays after his command works -- exactly why it works is a question about how various of us understand the rules of Vocola, which strictly speaking isn't tim's problem
Nope
No, Tim's solution will work if your computer is set to associate URLs with Firefox.
In short, ShellExecute essentially runs same thing as the Run window. Try opening your Run window and typing or saying "www.google.com" (without the quotes). It should open your default web browser to that address.
The reason I use Appbringup is that my computer does not associate URLs with Firefox (don't ask).
Matt Chambers wrote: No,
No, Tim's solution will work if your computer is set to associate URLs with Firefox.
OK, that's a new one on me. How do you do that?
Bruce
tools - options - "Always
tools - options - "Always check if default browser at startup (something something). Tick that and restart, if it isn't default it should give you the option of making it default.
But of course I've done
But of course I've done that! Firefox is the default but I still have to specify it in the commandline. I thought it might be something like the familiar "open with" dialog. Maybe Matt had something else in mind.
OTOH, my system is so heavily hacked and stacked (as documented elsewhere here) that maybe I've altered whatever is required for this step to work.
The main thing is timtranslates has found a work around for the main problem of this topic.
Bruce