Lets say I joined a channel.
How can I build a functions/script which will auto highlight keywords that I define?
The same question but instead if highlighting, I would like to take the whole sentece and move it to a window? (Could be a window I create, or could be the status window)
Thanks.
i dont know about the hightlighting but i think i can do the window bit.
on *:TEXT:*whatyouwanthere*:#:{
//echo @text $1
}
for the highlighting the whole sentence if certain word is in it try mIRC's internal highlight function
/help highlight
/help on text
To capture text other people say...
I know how to use the TEXT.
But what about redirection. I want tha the text will apear in the status window, and will not apear in the channel.
(It can be used to block adds and junk from the channel).
on *:TEXT:*whatyouwanthere*:#:{
//echo -s $1
}
He wants it to not show in the channel window, so something like this would be better:
on ^*:TEXT:*whatyouwanthere*:#:{
echo -st # < $+ $nick $+ > $1-
haltdef
}
Ok, I see that you suggested using the -s switch. My question is: Will the text also aprear in the original window too? (I don't want it too). I assume that it will cause On Text acts after the text has already published on the channel.
//Edit:
Thank you collective, your idea looks like a one which will work.
try the code and see.... the ^ in it triggers the event before it goes to the window ur seeing and the HALTDEF in it halts it from appearing in the original window the -s directs it to echo to status