ShortCut Macro Parameters

Let's look at the ShortCut macro parameters, then I'll show you how to find each of the parameters in your application and apply them to the macro.

ShortCut(window-class, program[, wParam[, lParam[, topic-ID]]])

There are two required parameters: window-class & program. The items in squared braces are optional.

According to Help Workshop the macro "runs or activates a program and sends it a WM_COMMAND message". The WM_COMMAND message is an API (Application Program Interface) call sent to the program much like the way Context Sensitive Help works when an application calls a specific Help topic. The only parameters required are the first two, therefore you could run the macro like:

SH(`MSPaintApp',`pbrush.exe') to open one instance of Paint, the graphic program that comes with Windows 95.

WinHelp abbreviates the ShortCut macro as SH.

So how did I figure out the Window-class (MSPaintApp)? I spied upon it.

Next,  Spy ++