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 >
Wrap
OS/2 REXX Batch file
|
1992-02-20
|
1KB
|
31 lines
/* MBPress example AREXX script #1 */
/*------------------------------------------------------------------------*/
/* Make sure MBPress and Wait are in your C: dir */
/* Make sure MBPress1.rexx is in your Rexx: dir */
/* Now type RX MBPRESS1.REXX from a Shell and hit any mouse button(s) */
/* NOTE: this Rexx script can easily be edited to do whatever you want */
/*------------------------------------------------------------------------*/
options results /* return result codes from host */
address command 'c:Wait 1' /* wait 1 second before MBPress */
address command 'c:MBPress' /* check for button presses */
code = RC /* store result code */
if code = 0 then say "None"
if code = 1 then say "Left"
if code = 2 then say "Right"
if code = 3 then say "Left + Right"
if code = 4 then say "Middle"
if code = 5 then say "Left + Middle"
if code = 6 then say "Righ + Middle"
if code = 7 then say "Left + Right + Middle"
/*------------------------------------------------------------------------*/