home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
164.lha
/
ARexx
/
TXedToSpeechToy
/
txed_to_speechtoy.txed
< prev
next >
Wrap
Text File
|
1988-04-28
|
1KB
|
52 lines
/* txed_to_speechtoy */
/* Txed Macro to speak words marked
in TxEd Plus window */
/* by John Palmer (JohnP on PLink) May 31, 1988 */
/* Probably needs full ARexx; and the revision of SpeechToy that
knows about ARexx (SpeechToy Version 1.2, by David M Lucas,
and enhanced by Rob Peck 15 April 1988) */
/* if ADDLIB("rexxsupport.library",0,-30,0)=0 then do
'MSG Need rexxsupport.library in LIBS:!'
exit
end
*/
say ADDLIB("rexxsupport.library",0,-30,0)
If (SHOWLIST('P',SPEECHTOY)) = 0 then do
'MSG SpeechToy Not Active!'
Exit
end
OPTIONS results
/* Arexx should request a result string when commands
are issued to an external host (TxEd Plus) */
'COPY +X'
'STATUS M+X'
/* issue commands (to calling TxEd Plus) to copy
marked block into buffer X, and return in ARexx
variable "result" */
/*say result (for debugging!) */
words= 'WORDS=' || RESULT
/*say words (for debugging!) */
OPTIONS
address SPEECHTOY
/* issue commandsto SPEECHTOY now */
words
/* give it the command "WORDS= whatever" */
'TRANS=1'
/* tell Speechtoy to translate these words */
'SPEAK=1'
/* and now to speak them */
exit