mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: May 2021
Posts: 3
Self-satisfied door
OP Offline
Self-satisfied door
Joined: May 2021
Posts: 3
Is it possible to set say variable %foo with the first word of $text?


ComputerTech
Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
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)


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
Joined: May 2021
Posts: 3
Self-satisfied door
OP Offline
Self-satisfied door
Joined: May 2021
Posts: 3
Awesome! thank you Raccoon smile


ComputerTech

Link Copied to Clipboard