home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga MA Magazine 1998 #6
/
amigamamagazinepolishissue1998.iso
/
coders
/
arexx
/
moos
/
docs
/
english
/
rexx_misc.doc
< prev
next >
Wrap
Text File
|
1997-03-25
|
8KB
|
347 lines
TABLE OF CONTENTS
--background--
rexx_misc.library/GetMouse
rexx_misc.library/GetUniqueID
rexx_misc.library/Phonemes
rexx_misc.library/ReadClip
rexx_misc.library/Speak
rexx_misc.library/WBInfo
rexx_misc.library/WriteClip
--background-- --background--
$(C): (1996, Rocco Coluccelli, Bologna)
$VER: rexx_misc.library 37.1 (24.03.97)
rexx_misc.library
This sub-library of the rexxMOOS.library include functions from
several Amiga system libraries and devices.
GetUniqueID()
Phonemes()
ReadClip()
Speak()
WBInfo()
WriteClip()
NOTES
Is part of the MOOS package.
TODO
BUGS
rexx_misc.library/GetMouse rexx_misc.library/GetMouse
NAME
GetMouse -- Read the mouse pointer position.
SYNOPSIS
ret = GetMouse(options)
FUNCTION
The function returns the position of the mouse pointer into the
current screen.
INPUTS
options - "PosX=X/S,PosY=Y/S"
"PosX" - The result value is the "x" coordinate.
"PosY" - The result value is the "y" coordinate.
RESULT
The returned value depends on the options switchs.
EXAMPLE
SAY GetMouse('X')
SEE ALSO
intuition/intuitionbase.h
rexx_misc.library/GetUniqueID rexx_misc.library/GetUniqueID
NAME
GetUniqueID -- return a relatively unique number. (V39)
SYNOPSIS
id = GetUniqueID()
FUNCTION
Returns a unique value each time it is called. This is useful for
things that need unique ID such as the GadgetHelp ID, etc. Note
that this is only unique for 4,294,967,295 calls to this function.
Under normal use this is not a problem. This function is safe in
interrupts.
INPUTS
RESULT
An unsigned long integer.
EXAMPLE
temp = "t:tmp." || GetUniqueID()
SAY temp
NOTES
This function is only available from the version 39 of the
utility.library. On systems using older versions of the library
the returned value... (NOT YET IMPLEMENTED).
SEE ALSO
utility.library/GetUniqueID()
rexx_misc.library/Phonemes rexx_misc.library/Phonemes
NAME
Phonemes -- Convert a string into narrator device phonemes.
SYNOPSIS
str = Phonemes(string)
FUNCTION
This function converts the given text string into a string of
phonetic codes suitable as input to the narrator device.
INPUTS
string - Using the version 37 of the translator.library the
given string might be only an english text string.
The new translator.library (V42) accepts string of
any language.
RESULT
str - The phonetic representation of the given string. In case
of errors an empty string will be returned.
EXAMPLE
SAY Phonemes("Do you like MOOS?")
BUGS
There's a dangerous bug into the new translator.library (V42).
Its Translate() function goes over the buffer limits and this
has required a run-around: the allocated buffer is three times
the dimension of the given text string.
SEE ALSO
translator.library/Translate(), rexx_misc.library/Speak()
rexx_misc.library/ReadClip rexx_misc.library/ReadClip
NAME
ReadClip -- Read text stored into the clipboard.
SYNOPSIS
str = ReadClip(options)
FUNCTION
This function read the FTXT chunk of any clip stored into the
clipboards at a given unit number.
INPUTS
options - "Unit/N"
"Unit" - Any number into the range 0-255 is valid.
(default is 0)
RESULT
str - If the clip entry selected using "Unit" has a valid IFF
FORM..FTXT structure then the stored text is returned
otherwise an empty string.
EXAMPLE
SAY ReadClip()
SEE ALSO
clipboard.device/CMD_READ, rexx_misc.library/WriteClip()
rexx_misc.library/Speak rexx_misc.library/Speak
NAME
Speak -- Speaks using the narrator device. (V37)
SYNOPSIS
success = Speak(string,options)
FUNCTION
This function opens the narrator.device to say the given text
string (or its phoneme representation).
INPUTS
string - A normal text string, or its phoneme representation.
options - "Phoneme=PH/S,Rate/K/N,Pitch/K/N,Freq/K/N,Vol/K/N,
Female/S,Robot/S,Nat/S,Enth/K/N,Pert/K/N"
"Phoneme" - Use this switch to signal that the given string
has already been translated into its phonetic
representation. By default the function converts
the given text using the translator.library.
"Rate" - Speaking rate, words per minute, can vary from
40 up to 400 (default 150).
"Pitch" - The voice pitch, can vary from 65 up to 320
(default 110).
"Freq" - The minimum accepted value for the sampling
frequency is 5000 (Hz) up to a maximum of
28000 (default 22200).
"Vol" - The volume may vary from 0 up to 64 (default 64).
"Female" - The default vocal tract is "Male", but it can be
changed to "Female" using this switch.
"Robot" - This switch select a monotone pitch contours.
"Nat" - This switch select the natural pitch contours.
"Enth" - The default value for the "enthusiasm" is 32, but
it may vary from 0 up to 255.
"Pert" - To add a "perturbation" to the generated voice
can be specified a value from 0 up to 255
(default 0).
RESULT
success - boolean value (1 mean all done, ok).
EXAMPLE
opt = 'freq 23500 enth 255 rate 80'
CALL Speak("Daddy? What does 'formatting C:' mean?",opt)
NOTES
This function requires the version 37 of the narrator.device.
SEE ALSO
rexx_misc.library/Phonemes(), narrator.device
rexx_misc.library/WBInfo rexx_misc.library/WBInfo
NAME
WBInfo -- Bring up the Information requester. (V39)
SYNOPSIS
success = WBInfo(pathname)
FUNCTION
This is the function that Workbench calls to bring up the Icon
Information requester. External applications may also call this
requester.
INPUTS
pathname - The icon path name (without ".info"). The function is
able to bring up the information requester for every
file, directory, device, including "#?.info", but may
be really useful only on those provided with an icon.
RESULT
success - boolean value (1 mean all done, ok).
EXAMPLE
CALL WBInfo("SYS:System/Format")
NOTES
This function is only available from the version 39 of the
wb.library.
BUGS
Into this release, the function returns "0" only if the given
path doesn't exist, no matter if the requester has been opened.
SEE ALSO
wb.library/WBInfo()
rexx_misc.library/WriteClip rexx_misc.library/WriteClip
NAME
WriteClip -- Write text into the clipboard.
SYNOPSIS
success = WriteClip(text,options)
FUNCTION
This function write the given "text" into any clipboard unit.
INPUTS
text - It might be a normal block of text, but the function
doesn't check which kind of data will be really stored
into the clip.
options - "Unit/N"
"Unit" - Any number into the range 0-255 is valid.
(default is 0)
RESULT
success - boolean value (1 mean all done, ok).
EXAMPLE
SAY WriteClip("The text for the clip...")
BUGS
SEE ALSO
clipboard.device/CMD_WRITE, rexx_misc.library/ReadClip()