home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / texed133.zip / English.zip / Action.cmd next >
OS/2 REXX Batch file  |  1995-09-24  |  663b  |  31 lines

  1. /*
  2.  *  This macro post a message to an internal function of TeXEdit.
  3.  *  This message will start TeX, Preview or Print for the current
  4.  *  document. (All nessesary actions like save, compile etc. will
  5.  *  be done automatically)
  6.  */
  7.  
  8.  
  9.     /*
  10.      * Definition of the event strings
  11.      */
  12.  
  13.     EvStr.1 = "call TeXen_Click"       /* TeXen   */
  14.     EvStr.2 = "call Vorschau_Click"    /* Preview */
  15.     EvStr.3 = "call Drucken_Click"     /* Print   */
  16.  
  17.  
  18.     /*
  19.      * Choose an event. (1 = TeX, 2 = Preview, 3 = Print)
  20.      */
  21.  
  22.     i = 1
  23.  
  24.  
  25.     /*
  26.      * Post the event...
  27.      */
  28.  
  29.     call VRMethod 'Application', 'PostQueue',,,EvStr.i
  30.  
  31.