Catching macro error
Posted: Mon Feb 25, 2008 7:22 pm
Hello,
I have a simple macro that opens a browser specified in a Global variable:
As you can see, the path to the browser is hard-wired, so if you use other browser than Firefox, or the browser is installed in a different location, the macro won't work. How do I "catch" the error, so I can make do macro something useful if the browser is not found in the specified path? I hope my question makes sense.
Kind regards,
Dmitri
I have a simple macro that opens a browser specified in a Global variable:
Code: Select all
Global Const DefaultWindowsBrowser="C:\Program Files\Mozilla Firefox\firefox.exe"
Shell(DefaultWindowsBrowser,1, LookupWord.String)
Kind regards,
Dmitri