home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d6xx / d602 / mbpress.lha / MBPress / Scripts / MBPress2.rexx < prev   
OS/2 REXX Batch file  |  1992-02-20  |  1KB  |  33 lines

  1. /*     MBPress example AREXX script #2     */
  2.  
  3. /*------------------------------------------------------------------------*/
  4.  
  5.  
  6. /* Make sure MBPress and Wait are in your C: dir */
  7. /* Make sure MBPress2.rexx is in your Rexx: dir */
  8. /* Make sure Clock is in your Sys:Utilties dir */
  9. /* Now type  RX MBPRESS2.REXX  from a Shell and hit the left mouse button */
  10.  
  11. /* NOTE: this Rexx script can easily be edited to do whatever you want */
  12.  
  13. /* NOTE: You can add edit your s:User-Startup by adding this to it */
  14. /*       RX Rexx:MBPress2.REXX */
  15.  
  16. /* NOTE: If  you do the above modification to your s:Startup-Sequence,
  17.          it must be on a line located after you have started the ARexx 
  18.          process. */
  19.  
  20.  
  21. /*------------------------------------------------------------------------*/
  22.  
  23. options results                /* return result codes from host */
  24.  
  25. address command 'c:Wait 1'        /* wait 1 second before MBPress */
  26. address command 'c:MBPress'        /* check for button presses */
  27. code = RC                /* store result code */
  28.  
  29. if code = 1 then address command 'Sys:utilities/Clock'    /* run Clock */
  30.  
  31.  
  32. /*------------------------------------------------------------------------*/
  33.