home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_progs / commands / mbpress.lha / scripts / MBPress-Script next >
Encoding:
Text File  |  1992-02-21  |  1.1 KB  |  43 lines

  1.     ;;;  MBPress example script  -  for OS 2.04  only!  ;;;
  2.  
  3. ; execute me, then press some mouse button combination to see the results
  4. ; you have got 2 sec. after pressing 'Return' to choose your mouse button(s)
  5. ;
  6.  
  7. Echo "Ok, press your mouse button(s) now."
  8. Wait 2
  9.  
  10. MBPress
  11. Set ANSWER $RC
  12. If $Answer EQ 0
  13.     echo "none"          ; add your own commands here
  14. Endif
  15. If $ANSWER EQ 1
  16.            echo "left"          ; add your own commands here
  17. Endif
  18. If $Answer EQ 2
  19.     echo "right"          ; add your own commands here
  20. Endif
  21. If $Answer EQ 3
  22.     echo "left + right"          ; add your own commands here
  23. Endif
  24. If $Answer EQ 4
  25.     echo "middle"          ; add your own commands here
  26. Endif
  27. If $Answer EQ 5
  28.     echo "left + middle"          ; add your own commands here
  29. Endif
  30. If $Answer EQ 6
  31.     echo "right + middle"          ; add your own commands here
  32. Endif
  33. If $Answer EQ 7
  34.     echo "left + right + middle"          ; add your own commands here
  35. Endif
  36. UnSet ANSWER
  37.  
  38. ; end of MBPress example script for OS 2.04 ;
  39.  
  40. ; P.S.  This script is a little bulky for every day use, so just keep
  41. ; ----  the if statements you need and delete the rest.
  42.