home *** CD-ROM | disk | FTP | other *** search
/ NetComm Communications 5 / NetComm.iso / resource / netcomm / wcomm / disk3 / sscaptur.c_ / sscaptur.bin
Encoding:
Text File  |  1994-10-24  |  1.0 KB  |  31 lines

  1. /* This program, sscaptur.c, created by Delrina and assigned to the Capture */
  2. /* button, brings up the Capture dialog, as if you selected On-Line|Capture to File. */
  3.  
  4. /* $Revision:   1.0  $ */
  5. /* $Date:   26 Apr 1993 15:21:04  $ */
  6.  
  7. /* Define main function, which is always the starting point of C programs. */
  8. /* (The term "void" indicates that the function returns no value.) */
  9. void main ()
  10.     {
  11.     int  ReturnValue;
  12.     long ScriptHandle = 0;
  13.  
  14.     /* Establish a link between this script program and Delrina WinComm PRO */
  15.     ScriptHandle = dcInitialize(0, 0, 0, 0);
  16.  
  17.     /* Exit if intialization of link with Delrina WinComm PRO failed */
  18.     if (ScriptHandle == 0) exit();
  19.  
  20.     /* Same as selecting On-Line from menu bar, then Capture to file from On-Line menu */
  21.     ReturnValue = dcMenuString(ScriptHandle, "OF");
  22.  
  23.     /* If dialog does not pop up, turn off capturing */
  24.     if (ReturnValue < 0)
  25.         dcCaptureControl(ScriptHandle, 5);
  26.  
  27.     /* Terminate link between Delrina WinComm PRO and script program */
  28.     dcTerminate(ScriptHandle, 0);
  29.     }
  30.  
  31.