home *** CD-ROM | disk | FTP | other *** search
- /* This program, sopen.c, created by Hilgraeve and assigned to the Open */
- /* button, brings up the selected session, as if you selected File|Open. */
-
- /* $Revision: 1.1 $ */
- /* $Date: 1993/04/26 15:20:56 $ */
-
- /* Define main function, which is always the starting point of C programs. */
- /* (The term "void" indicates that the function returns no value.) */
- void main ()
- {
- /* Declares a variable and initializes it to zero. */
- 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 Open from File menu. */
- haMenuString(ScriptHandle, "FO");
-
- /* Terminate link between HA/Win and script program */
- haTerminate(ScriptHandle, 0);
- }
-
-