Launching Web browser from script
In order to open an HTML page in the default browser (or send an email) from a script, it is necessary to call Windows function ShellExecute. This is an easy task for CorelSCRIPT. First, you should declare the function like this:
DECLARE SUB ShellExecute LIB "shell32" \\ (BYVAL hWnd&,BYVAL Operation&,BYVAL File$,BYVAL Parameters&,\\ BYVAL Directory&,BYVAL Show&) ALIAS "ShellExecuteA"
Then call it as shown in the example below.
To send an email from script, call ShellExecute this way:
Copyright © 2000 by Alex Vakulenko. All rights reserved.