It would be a good idea to read the help for the Windows Help Workshop.
HCW.exe

ExecFile macro

ExecFile(program[, arguments[, display-state[, topic-ID]]])

Runs a program or the program associated with a file.

Parameter       Description

program             Specifies the name of the program to be run or the name
of a file. If a file is specified, the program associated with that file
type is started.
arguments       Specifies the command-line arguments to send to the program.
display-state   Specifies a value indicating how the program's window is to be
shown. If this parameter is not specified, SW_SHOW is used (activates the
window and shows it in its default size and position). This optional
parameter can be one of the following values.

Value   Meaning

SW_HIDE Hides the window.
SW_MINIMIZE     Minimizes the window.
SW_RESTORE      Restores the window to its original size and position if the
window is minimized or maximized.
SW_SHOW Activates the window and displays it in its current size and
position.
SW_SHOWMAXIMIZED        Activates the window and maximizes it.
SW_SHOWMINIMIZED        Activates the window and displays it minimized.
SW_SHOWMINNOACTIVE      Displays the window minimized, but WinHelp keeps the
focus.
SW_SHOWNA       Displays a window in its current state, but WinHelp keeps the
focus. (If the window was minimized before this call, it will stay
minimized.)

SW_SHOWNOACTIVATE       Displays a window in its most recent size and position,
but WinHelp keeps the focus.
SW_SHOWNORMAL   Activates and displays the window. If the window is minimized
or maximized, Windows restores it to its original size and position (same as
SW_RESTORE).

topic-ID        Specifies the ID of the topic to display if the specified file or
program cannot be started.

Comments

If a path is specified, WinHelp first searches for the file in the specified
path. If the file is not found or no path was specified, WinHelp searches
the same locations as it does when it searches for Help files:

·       The folder of the current Help file.
·       The current folder.
·       The System subfolder in the Windows folder.
·       The Windows folder.
·       The folders listed in the PATH environment.
·       The location specified in the Winhelp.ini file.
·       The Help portion of the registry.

Help Workshop automatically converts the ExecFile macro to EF, which is the
only form of this macro that WinHelp can use.
The ExecFile macro is new for WinHelp version 4.0.

Example

The following example opens the WIN.INI file in the program associated with
.ini files:

ExecFile(win.ini)

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Ross Levis
> Sent: Friday, 12 October 2001 10:40
> To: Multiple recipients of list delphi
> Subject: Re: [DUG]: Windows Help macros (OT)
>
>
> Thanks Patrick.
>
> ExecFile doesn't show in the list of macros available in the help
> software I'm using but I entered it & works!
>
> Cheers,
> Ross.
>
> Patrick Dunford wrote:
>
> >If you want to open a URL just use ExecFile.
> >
> >We use this for executing hyperlinks and it works just fine
> >
> >e.g.
> >!ExecFile(http://www.delphi.org.nz/)
> >
>
>
>
>
> ------------------------------------------------------------------
> ---------
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"
> Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
>

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to