mIRC Home    About    Download    Register    News    Help

Print Thread
C
ComputerTech
ComputerTech
C
Is it possible to set say variable %foo with the first word of $text?

Joined: Feb 2003
Posts: 2,737
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Feb 2003
Posts: 2,737
There is no identifier $text

You can get the first word of event text by using $1

You can get all of the event text by using $1- or $parms or $eventparms

You can specify other words (parameters) and ranges in similar ways.

var %foo = $1
var %foo = $gettok($1-,1,32)
var %foo = $gettok($parms,1,32)
var %foo = $gettok($eventparms,1,32)

var %foo = $2-6
var %foo = $gettok($1-,2-6,32)
var %foo = $gettok($parms,2-6,32)
var %foo = $gettok($eventparms,2-6,32)

C
ComputerTech
ComputerTech
C
Awesome! thank you Raccoon smile


Link Copied to Clipboard