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

  1. /*  MBPress example AREXX script #1  */
  2.  
  3. /*------------------------------------------------------------------------*/
  4.  
  5.  
  6. /* Make sure MBPress and Wait are in your C: dir */
  7. /* Make sure MBPress1.rexx is in your Rexx: dir */
  8. /* Now type  RX MBPRESS1.REXX  from a Shell and hit any mouse button(s) */
  9.  
  10. /* NOTE: this Rexx script can easily be edited to do whatever you want */
  11.  
  12.  
  13. /*------------------------------------------------------------------------*/
  14.  
  15. options results                /* return result codes from host */
  16.  
  17. address command 'c:Wait 1'        /* wait 1 second before MBPress */
  18. address command 'c:MBPress'        /* check for button presses */
  19. code = RC                /* store result code */
  20.  
  21. if code = 0 then say "None"
  22. if code = 1 then say "Left"
  23. if code = 2 then say "Right"
  24. if code = 3 then say "Left + Right"
  25. if code = 4 then say "Middle"
  26. if code = 5 then say "Left + Middle"
  27. if code = 6 then say "Righ + Middle"
  28. if code = 7 then say "Left + Right + Middle"
  29.  
  30. /*------------------------------------------------------------------------*/
  31.