mIRC Home    About    Download    Register    News    Help

Print Thread
#23012 07/05/03 01:53 PM
Joined: Feb 2003
Posts: 282
S
Fjord artisan
OP Offline
Fjord artisan
S
Joined: Feb 2003
Posts: 282
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
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
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.

new username: tidy_trax
#23014 07/05/03 01:59 PM
Joined: Dec 2002
Posts: 774
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 774
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...


Code:
//if ( khaled isgod ) echo yes | else echo no
#23015 07/05/03 02:03 PM
Joined: Feb 2003
Posts: 282
S
Fjord artisan
OP Offline
Fjord artisan
S
Joined: Feb 2003
Posts: 282
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
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
on *:TEXT:*whatyouwanthere*:#:{
//echo -s $1
}


new username: tidy_trax
#23017 07/05/03 02:09 PM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
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
Joined: Feb 2003
Posts: 282
S
Fjord artisan
OP Offline
Fjord artisan
S
Joined: Feb 2003
Posts: 282
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
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
suppose


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


D3m0nnet.com

Link Copied to Clipboard