home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 35 Internet
/
35-Internet.zip
/
gtirc301.zip
/
REXXAWAY.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1997-11-24
|
3KB
|
58 lines
/*********************************************************************/
/* REXXAWAY.CMD GammaTech IRC Sample REXX Stand Alone Script */
/*********************************************************************/
/* */
/* This script is supported only on GtIrc version 3.0 and above. */
/* */
/* This is a sample REXX script for use with GammaTech IRC. It is */
/* executed by an idle timer event such that it is called when ever */
/* client idle time exceeds a specified value. */
/* */
/* To activate this script enter the following or similar command: */
/* */
/* /timer idle 300 /rexx rexxaway.cmd Automatically set away. */
/* */
/* Note that you can have this command executed automatically when */
/* you start GtIrc via use of the Initialize Rexx exit script */
/* found on the Startup Dialog. */
/* */
/* This script sets the client away automatically but silently. */
/* */
/*********************************************************************/
/* */
/* Entry arguments: */
/* */
/* Arg 1 - Window Handle */
/* Arg 2 - Your Nickname */
/* Arg 3 - Window Name */
/* Arg 4 - Command line parameters if any */
/* */
/*********************************************************************/
/* */
/* There are external REXX functions you may use in this REXX */
/* procedure which are described in the online help under Script */
/* programming. A summary of those functions is shown below: */
/* */
/* IrcRexxDisplay(text,win) Display text in a window. */
/* IrcRexxCommand(text,win) Send text or /comamnd to IRC */
/* IrcRexxSend(text,win) Send raw text to server. */
/* IrcRexxVariable(win,name[,value]) Query or set an IRC variable. */
/* IrcRexxWildCard(wildcard,string) Check for wildcard match. */
/* */
/*********************************************************************/
Parse Arg WinHandle WinName OurNick Parms
Pool = 'OS2ENVIRONMENT'
if (IrcRexxVariable(WinHandle,"$AWAY") = "HERE") then do
if(Parms = '') then do
Parms = 'Automatically set away.'
end
Text = '/away' Parms
IrcRexxCommand(Text,WinHandle)
end
Return ""