mIRC Home    About    Download    Register    News    Help

Print Thread
#23012 07/05/03 01:53 PM
S
saragani
saragani
S
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.


#23013 07/05/03 01:56 PM
P
pheonix
pheonix
P
i dont know about the hightlighting but i think i can do the window bit.



on *:TEXT:*whatyouwanthere*:#:{
//echo @text $1
}

Last edited by pheonix; 07/05/03 01:56 PM.
#23014 07/05/03 01:59 PM
T
theRat
theRat
T
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...

#23015 07/05/03 02:03 PM
S
saragani
saragani
S
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).

#23016 07/05/03 02:07 PM
P
pheonix
pheonix
P
on *:TEXT:*whatyouwanthere*:#:{
//echo -s $1
}

#23017 07/05/03 02:09 PM
Joined: Dec 2002
Posts: 3,015
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,015
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
}

#23018 07/05/03 02:11 PM
S
saragani
saragani
S
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.

Last edited by saragani; 07/05/03 02:13 PM.
#23019 07/05/03 02:11 PM
P
pheonix
pheonix
P
suppose

#23020 07/05/03 05:27 PM
Joined: Dec 2002
Posts: 1,518
_
Hoopy frood
Offline
Hoopy frood
_
Joined: Dec 2002
Posts: 1,518
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


Link Copied to Clipboard