home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 35 Internet
/
35-Internet.zip
/
gtirc306.zip
/
REXXINIT.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1997-11-24
|
3KB
|
53 lines
/*********************************************************************/
/* REXXINIT.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 one time only after the first connection with an IRC */
/* server. It is executed only one time per execution of GtIrc. */
/* */
/* To activate this script place the script name in the */
/* Initialization field of the Startup Dialog. */
/* */
/*********************************************************************/
/* */
/* 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'
/* Set a user defined IRC variable with our first name as it's value */
IrcRexxVariable(WinHandle,"$FirstName","Paul");
/* Start a idle timer to execute the auto away script after 15 min. */
IrcRexxCommand("/Timer idle 900 /rexx rexxaway.cmd",WinHandle)
/* Add two custom menu items to the nick list popup menu to give */
/* and take moderator status for the selected nickname. */
IrcRexxCommand("/Menu nick +Mod /mode $CHANNELNAME +v $SELECTEDNICK",WinHandle)
IrcRexxCommand("/Menu nick -Mod /mode $CHANNELNAME -v $SELECTEDNICK",WinHandle)
Return ""