home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 35 Internet
/
35-Internet.zip
/
gtirc306.zip
/
REXXSCR.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1997-11-24
|
4KB
|
70 lines
/*********************************************************************/
/* REXXSCR.CMD GammaTech IRC Sample REXX Stand Alone Script */
/*********************************************************************/
/* */
/* This is a sample REXX script for use with GammaTech IRC. It is */
/* executed using the /SCR or /REXX command from the GtIrc command */
/* line or toolbar icon. */
/* */
/* This sample generates a /SOUND command to play a *.wav file on */
/* the speified client and display a hello message. */
/* */
/* Warning: Do not change this script. Copy it to another name */
/* and modify the copy for backup purposes. */
/* */
/*********************************************************************/
/* */
/* Entry arguments: */
/* */
/* Arg 1 - Window Handle */
/* Arg 2 - Your Nickname */
/* Arg 3 - Window Name */
/* Arg 4 - Command line parameters if any */
/* */
/* The Window Name parameter will contain one of the following: */
/* */
/* * Channel name if the command is executed from a channel */
/* window. In this case the first character will be a # or &. */
/* */
/* * Other clients nick name if the command is executed from a */
/* query window. The first character will not be #, & or !. */
/* */
/* * If the command is executed from any other type of window */
/* this parameter will contain a !. */
/* */
/*********************************************************************/
/* */
/* 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 Upper Arg WinHandle WinName OurNick Parm1 Parms
Pool = 'OS2ENVIRONMENT'
/*********************************************************************/
/* */
/* Generate a /Sound command to the nickname specified in Parm1 */
/* using a hard coded wav file and message text. */
/* */
/*********************************************************************/
if (Parm1 <> '') then do
OutStr = "/SOUND " Parm1 "dragon.wav Hello !!!"
IrcRexxCommand(OutStr,WinHandle)
end
else do
IrcRexxDisplay("*** Missing nickname ***",WinHandle)
end
Return ""