home *** CD-ROM | disk | FTP | other *** search
- /* This program, sscaptur.c, created by Hilgraeve and assigned to the Capture */
- /* button, brings up the Capture dialog, as if you selected File|Capture to File. */
-
- /* $Revision: 1.1 $ */
- /* $Date: 1993/04/26 15:21:04 $ */
-
- /* Define main function, which is always the starting point of C programs. */
- /* (The term "void" indicates that the function returns no value.) */
- void main ()
- {
- int ReturnValue;
- long ScriptHandle = 0;
-
- /* Establish a link between this script program and HA/Win */
- ScriptHandle = haInitialize(0, 0, 0, 0);
-
- /* Exit if intialization of link with HA/Win failed */
- if (ScriptHandle == 0) exit();
-
- /* Same as selecting File from menu bar, then Capture to file from File menu */
- ReturnValue = haMenuString(ScriptHandle, "FF");
-
- /* If dialog does not pop up, turn off capturing */
- if (ReturnValue < 0)
- haCaptureControl(ScriptHandle, 5);
-
- /* Terminate link between HA/Win and script program */
- haTerminate(ScriptHandle, 0);
- }
-
-