home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga MA Magazine 1998 #6
/
amigamamagazinepolishissue1998.iso
/
coders
/
arexx
/
moos
/
demos
/
rexx_misc.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1997-03-25
|
2KB
|
101 lines
/*
* rexx_[SUB].library
*
* Test file...
*/
OPTIONS RESULTS
lib = 'rexxMOOS.library'; IF ~SHOW('L',lib) THEN CALL ADDLIB(lib,100,-30)
/*
* WriteClip()
*/
CALL print(4,'#',"WriteClip(text,options)")
str = 'MOOS: "The" ARexx library'
CALL print(20,'-','WriteClip('''str''')')
SAY WriteClip(str)
/*
* ReadClip()
*/
CALL print(4,'#',"ReadClip(options)")
CALL print(20,'-','ReadClip()')
SAY ReadClip()
/*
* Phonemes()
*/
CALL print(4,'#',"Phonemes()")
str = 'MOOS: "The" ARexx library'
CALL print(20,'-','Phonemes("'str'")')
SAY Phonemes(str)
/*
* Speak()
*/
CALL print(4,'#',"Speak(string,options)")
opt = 'rate 100'
str = "This is Amiga speaking!"
CALL print(20,'-','Speak("'str'",'''opt''')')
CALL Speak(str,opt)
opt = 'enth 200'
CALL print(20,'-','Speak("'str'",'''opt''')')
CALL Speak(str,opt)
SAY "Don't try to read what you've to listen... :-)"
/*
* WBInfo()
*/
CALL print(4,'#',"WBInfo(pathname)")
CALL print(20,'-','WBInfo("")')
SAY WBInfo("")
/*
* GetMouse()
*/
CALL print(4,'#',"GetMouse(options)")
opt = "PosX"
CALL print(20,'-','GetMouse('''opt''')')
SAY GetMouse(opt)
opt = "PosY"
CALL print(20,'-','GetMouse('''opt''')')
SAY GetMouse(opt)
/*
* GetUniqueID()
*/
CALL print(4,'#',"GetUniqueID()")
CALL print(20,'-','GetUniqueID()')
SAY GetUniqueID()
CALL print(20,'-','GetUniqueID()')
SAY GetUniqueID()
ADDRESS COMMAND 'Wait' 2
SAY
EXIT 0
print: PROCEDURE
PARSE ARG pos,char,str
IF char = '#' THEN SAY '0a0a'x
SAY COPIES(char,pos) || OVERLAY(" "str" ",COPIES(char,78 - pos))
RETURN