mIRC Homepage
Posted By: saragani hightligh + redirect - 07/05/03 01:53 PM
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.

Posted By: pheonix Re: hightligh + redirect - 07/05/03 01:56 PM
i dont know about the hightlighting but i think i can do the window bit.



on *:TEXT:*whatyouwanthere*:#:{
//echo @text $1
}
Posted By: theRat Re: hightligh + redirect - 07/05/03 01:59 PM
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...
Posted By: saragani Re: hightligh + redirect - 07/05/03 02:03 PM
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).
Posted By: pheonix Re: hightligh + redirect - 07/05/03 02:07 PM
on *:TEXT:*whatyouwanthere*:#:{
//echo -s $1
}
Posted By: Collective Re: hightligh + redirect - 07/05/03 02:09 PM
He wants it to not show in the channel window, so something like this would be better:
Code:
on ^*:TEXT:*whatyouwanthere*:#:{
  echo -st # < $+ $nick $+ > $1-
  haltdef
}
Posted By: saragani Re: hightligh + redirect - 07/05/03 02:11 PM
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.
Posted By: pheonix Re: hightligh + redirect - 07/05/03 02:11 PM
suppose
Posted By: _D3m0n_ Re: hightligh + redirect - 07/05/03 05:27 PM
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
© mIRC Discussion Forums