home *** CD-ROM | disk | FTP | other *** search
/ M.u.C.S. Disc 2000 / MUCS2000.iso / online / coma5 / english / com_line.txt next >
Text File  |  1997-05-16  |  3KB  |  99 lines

  1.  
  2. CoMa could be controlled by Commandline or ARGV 
  3. (ARGV is not supported by MagiC)
  4.  
  5.   x.IMG         (path of IMG-file)
  6.   x.F0?         (path of FAX-file)
  7.   x.TXT         (path of ASCII-file)
  8.   x.DOC         (path of 1stWord-file)
  9.   x.ZX1         (path of ZyXEL CELP-file)
  10.   x.ZX2         (path of ZyXEL ADPCM2-file)
  11.   x.ZX3         (path of ZyXEL ADPCM3-file)
  12.   x.ZX4         (path of ZyXEL ADPCM4-file)
  13.   x.RO2         (path of Rockwell-ADPCM2-file)
  14.   x.RO3         (path of Rockwell-ADPCM3-file)
  15.   x.RO4         (path of Rockwell-ADPCM4-file)
  16.  
  17.   -n1 name      (set name1)
  18.   -n2 name      (set name2)
  19.   -fn faxnummer (set faxno.)
  20.   -ri x         (set number of rings)
  21.   -ar x         (automatic receive, 0 = off, 1 = on)
  22.   -hi nr        (header IMG #, 0 = no header)
  23.   -fi nr        (footer IMG #, 0 = no footer)
  24.   -op path      (set outgoing-path)
  25.   -nd           (no dialing)
  26.   -sd           (send fax)
  27.   -do           (dial only)
  28.   
  29.   -to           (takeover an existing call)
  30.   -faa          (if data-call, terminate with return-code 1)
  31.   -rv           (receive fax/datacall)
  32.   -po           (poll fax - only with class 2.0)
  33.   -fcon         (takeover detected fax-connect '+FCON' - 
  34.                  ID & FDCC-parameter have to be set already)
  35.   -voice        (take off, start voice-play)    
  36.   -cw           (close windows)           
  37.   
  38.   Example: Send 3 pages to Fax-no 1234567
  39.   coma x.img y.txt z.f02 -fn 1234567 -sd
  40.   
  41.   Example: Send Coversheet and Folder
  42.   coma -n1 "Harry Hurtig" -fn 1234/5678 -op F:\fax\example\ -sd
  43.   
  44.   Example: takeover a voice-call (if fax- or Data-callingtone is detected in 
  45.   voice-mode. 'FCON' may not be present already)
  46.   coma -to -rv 
  47.   
  48.   Example: receipt fax- or Data-call
  49.   coma -rv 
  50.   
  51.   Example: receipt call and quit with return-code 1 if data- or fax-call
  52.   coma -faa -rv 
  53.  
  54.   Beispiel: Poll
  55.   coma -fn 12345678 -po
  56.  
  57. The commandline could be transfered by VA_START protocoll (0x4711)
  58. So CoMa could be controlled by parallel working applications
  59.  
  60. message[0] = 0x4711;
  61. message[1] = coma_id;
  62. message[2] = master_id;
  63. message[3] + [4] = Pointer of commandline;
  64.  
  65. If threre are spaces in arguments, it can be enclosed in quotes.
  66.  
  67. z.B -n1 "Harry Hurtig" -fn 12345678 -sd
  68.  
  69. The returncode is tranfered by a system-message
  70.  
  71. message[0] = 0xA082
  72. message[1] = master_id;
  73. message[2] = coma_id;
  74. message[3] = return_code;
  75.  
  76. Return-Codes:
  77.  
  78. #define DATA_CONNECT 1   /* datacall detect */
  79. #define FAX_RECEIVED 0   /* Fax received succesfully */
  80. #define KEY_BREAK   -1   /* Key-break */
  81. #define NO_ANSWER   -2   /* no answer from modem */
  82. #define BUSY        -3   /* busy after x dial-tries */
  83. #define NO_CARRIER  -4   /* no carrier */
  84. #define NO_DIALTONE -5   /* no dialtone */
  85. #define ERROR       -6   /* modem reports error
  86. #define HANGUP      -7   /* modem hang up to early */
  87. #define NO_MEMORY   -8   /* not enough RAM  */
  88. #define NO_NUMBER   -9   /* missing fax-no */
  89. #define COMMAND_ERR -10  /* wrong parameter in commandline  */
  90. #define UNKNOWN_ERR -11  /* error in CoMa */
  91. #define FILE_NOT_FOUND -12 /* file not found */
  92.  
  93. #define NO_PORT     -14  /* serial port not available */
  94. #define NO_VOICE    -15  /* Modem has no voice-mode */
  95. #define DISK_FULL   -16  /* Disk full */
  96. #define DATA_TO     -17  /* Timeout at FTP */
  97. #define DELAYED     -18  /* Wahlsperre (German nonsens)*/
  98. #define TRANS_ERR   -19  /* Page-transmission error */
  99.