home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AmigActive 13
/
AACD13.ISO
/
AACD
/
Online
/
StrICQ
/
Src
/
STRICQRexx.doc
< prev
Wrap
Text File
|
2000-02-15
|
13KB
|
440 lines
STRICQ's ARexx Interface
STATUS SET/K,GET/S,ALL/S,VAR/K
Arguments:
SET - This keyword is used to set the status mode. The status must be one
of the recognized status' returned by the ALL switch. Those status'
that contain spaces can have the spaces replaced by an underscore '_'.
GET - This switch will return the current status mode. If used in
conjunction with the SET keyword, GET will return the current status
before the SET is made. The returned status will be in the ICQRC
variable.
ALL - This switch will return all known status' that will work with the SET
keyword. The total number of available status' will be returned in ICQRC.
The individual status' will be returned in the ICQRC.0 to ICQRC.(ICQRC-1)
stem variables. As a standard, the first status will always be "Online"
and the last status will always be "OFFLINE".
VAR - Give the name of a variable in your ARexx script and it will be used
instead of ICQRC to set return values.
Note:
The GET and ALL switches are mutually exclusive. If used together, the ALL
swtich takes priority.
Returns:
RC = 0 - Everything went fine.
RC = 5 - SET did not recognize the status passed to it.
Examples:
STATUS 'SET=ONLINE'
STATUS 'SET=FREE_FOR_CHAT'
STATUS GET; SAY ICQRC
Occupied
STATUS ALL; SAY ICQRC' 'ICQRC.0' 'ICQRC.1
8 Online Invisible
STATUS ALL 'VAR=STATII'; SAY STATII', 'STATII.2', 'STATII.3
8, Not Available, Free For Chat
GETCONTACT UIN/K,ENTRY/K,SELECTED/S,TOTAL/S,VAR/K
Arguments:
UIN - This keyword is used to provide the UIN of the contact you want
information about.
ENTRY - This keyword retrieves the contact that is the specified entry in
the contact list.
SELECTED - This switch will return the current selected user in the contact
list. Remember, the contact list is multi-selected, this will only
return the user the list cursor is currently on.
TOTAL - This switch will return the total number of contacts in the contact
list. The actual useable range will be 0 to ICQRC-1.
VAR - Give the name of a variable in your ARexx script and it will be used
instead of ICQRC to set return values.
Returns:
ICQRC.UIN - Universal Identification Number.
ICQRC.NICK - Nickname.
ICQRC.FIRST - First name.
ICQRC.LAST - Last name.
ICQRC.EMAIL - EMail address.
ICQRC.EMAIL_SECONDARY - Secondary EMail address.
ICQRC.EMAIL_OLD - Old EMail address.
ICQRC.CITY - City.
ICQRC.STATE - State.
ICQRC.COUNTRY - Country of user or 'Unspecified'.
ICQRC.PHONE - Telephone number.
ICQRC.FAX - FAX number.
ICQRC.CELLULAR - Cellular number.
ICQRC.HOMEPAGE - Homepage, generally a WWW URL.
ICQRC.ABOUT - Personal comment.
ICQRC.AGE - Age or 'Unspecified'.
ICQRC.SEX - 'Unspecified', 'Female', or 'Male'.
ICQRC.COMMENT - The local comment about this contact.
ICQRC.IP - If online, current IP address or '0.0.0.0'
ICQRC.PORT - Port associated with IP address.
ICQRC.NEWMSGS - Number of unread messages. Cleared when window opens.
ICQRC.STATUS - Current status. Different case as returned by STATUS.
ICQRC.LAST_ONLINE - Date and time last seen online.
ICQRC.MESSAGE_TO - Date and time a message was last sent to this UIN.
ICQRC.MESSAGE_FROM - Date and time a message was last received from this UIN.
RC = 0 - Everything went fine.
RC = 5 - The UIN was not found in the contact list, the ENTRY was out of
range, or there is no SELECTED entry.
Examples:
GETCONTACT 'UIN=8083608'; SAY ICQRC.NICK' is currently 'ICQRC.STATUS'.'
Black Fire is currently Online.
GETCONTACT 'UIN=8083608' 'VAR=USER'; SAY USER.FIRST
Douglas
GETCONTACT TOTAL; SAY ICQRC
543
GETCONTACT 'ENTRY=0' 'VAR=USER'; SAY USER.UIN
8083608
GETCONTACT SELECTED; SAY ICQRC.NICK
Black Fire
SENDMESSAGE UIN/K,MSG/K,URL/K,FILE/K
Description:
This command sends a message or URL to the specified UIN.
Arguments:
UIN - This keyword is used to provide the UIN of the contact you want
to send a message. The UIN does NOT need to be in your Contact List.
MSG - The message to be sent. It must be enclosed in quotes. If a URL
is being sent, this will be the description of the URL.
URL - This a WWW URL to send. It must be enclosed in quotes.
FILE - Instead of using MSG to send a message, this keyword specifies a
filename that holds the text of the message to be sent. This gets
around a ReadArgs() limitation that prevents the MSG keyword from correctly
handling messages that contain carriage returns and/or linefeeds. The
FILE keyword takes priority over MSG if both are used.
Returns:
RC = 0 - Everything went fine.
RC = 5 - Either UIN/K or MSG/K is missing. Both are required.
RC = 10 - The client is currently offline.
RC = 15 - The filename specified by FILE was not found.
Examples:
SENDMESSAGE 'UIN=8083608' 'MSG="Hello. How are you"'
SENDMESSAGE 'UIN=13944050' 'MSG="My home page."' URL="http://stricq.owlnet.net//"'
GREET = 'The current time is 'TIME()'.'
SENDMESSAGE 'UIN=8083608' 'MSG="'GREET'"'
SENDMESSAGE 'UIN=13944050' 'FILE=T:TempMsg'
SENDMESSAGE 'UIN=8083608' 'URL="http://ann.lu/"' 'FILE="T:ANN.txt"'
WINCONTROL WIN/K,OPEN/S,CLOSE/S,UIN/K
Description:
This command allows for the opening or closing of most every window used
by STRICQ.
Arguments:
WIN - This keyword is used to supply the name of the window to open. If
the window to be opened is a user window, supply the UIN of the user.
Remember that the user windows are created on the fly, each window
opened will use more RAM. If the user window creation fails, an error
will be returned. For other windows, use one of the predefined window
names listed:
ACTIVESOCKETS - The 'Active Sockets' window.
ACTIVITYLOG - The 'Activity Log' window.
FILEDIRECT - The 'FileDirect Request' window.
ICQPREFERENCES - The 'ICQ Preferences' window.
INCOMINGMESSAGES - The 'Incoming Messages' window.
MESSAGEHISTORY - The 'Message History' window.
PAGERMESSAGES - The 'Pager Messages' window.
STRICQ - The 'STRICQ' window.
STRICQLOG - The 'STRICQ Log' window.
SYSTEMMESSAGE - The 'System Message' window.
USERINFORMATION - The 'User Information' window.
OPEN - Supplying this switch will cause the specified window to be
opened. If neither OPEN nor CLOSE are supplied, OPEN is default.
CLOSE - Supplying this switch will cause the specified window to be
closed. This switch takes priority over the OPEN switch if both are
used at the same time.
UIN - When this keyword is supplied, the WIN argument can be only one of
two windows listed below. These windows are controlled by the Contact
List and therefore the UIN must already exist. Note: It is possible
for one of these windows to fail to open and still return RC = 0 mainly
due to a lack of available RAM to create the window.
TRANSFER - The File Direct window belonging to the supplied UIN..
CHAT - The Chat window belonging to the supplied UIN. (DEPRECATED)
Returns:
RC = 0 - Everything went fine.
RC = 5 - Was unable to create the user window.
RC = 10 - The UIN was not found in the contact list.
Examples:
WINCONTROL 'WIN=8083608' OPEN
WINCONTROL 'WIN=13944050' CLOSE
WINCONTROL 'WIN=FILEDIRECT'
WINCONTROL 'WIN=STRICQ' CLOSE
WINCONTROL 'WIN=CHAT' 'UIN=8083608'
WINCONTROL 'WIN=TRANSFER' 'UIN=13944050' CLOSE
ADDFILE FILE/K,REMOVE/S,CLEAR/S
Description:
This command adds or removes files from the FileDirect window.
Arguments:
FILE - This keyword is used to supply the full path to a file that is to
be added to the 'FileDirect Request' window listing.
REMOVE - If this switch is supplied, the file will be removed from the
list if it is already in the list.
CLEAR - If this switch is supplied, the files listing in the 'File Direct
Request' window will be emptied.
Returns:
RC = 0 - Everything went fine.
RC = 5 - Either the file to be added was not found or the file to be
removed was not found in the list.
Examples:
ADDFILE 'FILE=DH0:Pictures/CoolPic.jpg'
ADDFILE 'FILE=DH0:Pictures/RatedX.jpg'
ADDFILE 'FILE=DH0:Pictures/RatedX.jpg' REMOVE
ADDFILE CLEAR
FILEDIRECT UIN/K,DESC/K,SPEED/K
Description:
This command initiates the filedirect process with the supplied UIN.
Arguments:
UIN - This keyword is used to provide the UIN of the contact you want to
send the currently selected files. The UIN MUST be in the contact list.
DESC - This keyword is used to supply a description of the file(s) being
sent. The text must be enclosed in quotes. If not given it defaults
to, "Here are some files."
SPEED - This keyword allows for the setting of the intial speed for the
transfer. Allowable values range from 0 to 100 percent and defaults to
100 if the keyword is not given. Starting at 99%, each 1% down adds a
.05 second delay between the sending of each packet of the file. 0 will
will place the transfer into 'Paused' mode while 100 has no delay.
Returns:
RC = 0 - Everything went fine.
RC = 5 - Either the UIN keyword was not given or there are no files listed
in the 'FileDirect Request' window.
RC = 10 - The UIN was not found in the contact list.
Examples:
FILEDIRECT 'UIN=8083608' 'DESC="Here is that cool picture."'
FILEDIRECT 'UIN=13944050'
FILEDIRECT 'UIN=8083608' 'DESC="Full speed ahead!"' 'SPEED=100'
GETVERSION FULL/S
Description:
Returns the current version of STRICQ in either numeric or full text mode.
Arguments:
FULL - Returns the full text of the About window.
Returns:
ICQRC - Either the version as a number 0.0000 or the full text of the About
window if the FULL switch is used.
Examples:
GETVERSION; SAY ICQRC
0.1726
GETVERSION FULL; SAY ICQRC
$VER: STRICQ 0.1726 (15.02.00)
Copyright © 1998-2000 Douglas F. McLaughlin
ICQ Protocol Copyright © 1996 Mirabilis LTD.
All Rights Reserved.
DELETEUIN UIN/K
Description:
This command will delete a UIN from the contact list, remove its prefs
file from the Users directory and remove the message log from the Log
directory. This command is final with no second chance.
Arguments:
UIN - The UIN to delete from the contact list.
Returns:
RC = 0 - Everything went fine.
RC = 10 - The UIN was not found in the contact list.
Examples:
DELETEUIN 'UIN=8083608'
GETFILES VAR/K
Description:
This command will return all files currently listed in the FileDirect Send
window.
Arguments:
VAR - Give the name of a variable in your ARexx script and it will be used
instead of ICQRC to set return values.
Returns:
ICQRC.0 - Total number is files returned.
(Valid range from 0 to ICQRC.0 - 1)
ICQRC.NAME.0 - Full path and filename of a file in the send window.
ICQRC.SIZE.0 - Size in bytes of the file.
RC = 0 - Everything went fine.
RC = 5 - There are no files currently queued to send.
Examples:
GETFILES; SAY ICQRC.0' 'ICQRC.NAME.0
1 DH0:Pictures/SomePic.jpg
ACCEPT UIN/K,ACCEPT/S,DECLINE/S
Description:
This command will either accept or decline any incoming chat or file
request messages. The UIN/K is required. If neither ACCEPT/S or
DECLINE/S are present, ACCEPT/S is the default. If both are used,
DECLINE/S will be default.
Arguments:
UIN - The UIN of the person requesting chat or to send a file.
ACCEPT - This will start the chat mode or file send process.
DECLINE - This will cancel the chat mode or file send process.
Returns:
RC = 0 - Everything went fine.
RC = 5 - The supplied UIN is not requesting chat or file.
RC = 10 - The supplied UIN is not in the contact list.
RC = 20 - The UIN/K argument is missing.
Examples:
ACCEPT 'UIN=8083608'
ACCEPT 'UIN=8083608' ACCEPT
ACCEPT 'UIN=8083608' DECLINE