mIRC Homepage
Posted By: Voglea Check string for highlight - 17/09/10 08:22 AM
How to fast check string for highlights?

Request snippet smile
Highlights sets in Alt + B "Highlight" dialog.

on ^&*:TEXT:*:#: {
; if highlight is turned on
if ($highlight) {
if ($check_for_highlight($1-)) {
echo highlight!
}
}
}
Posted By: 5618 Re: Check string for highlight - 17/09/10 08:55 AM
See /help $highlight
Second entry: $highligh(N/text) returns a value if <text> matches a highlight.
Posted By: Voglea Re: Check string for highlight - 17/09/10 10:49 AM
oh. thanks
Posted By: jaytea Re: Check string for highlight - 17/09/10 03:22 PM
assuming you don't have numerical highlight entries, you might also want to throw in an extra little check:

Code:
if ($1- !isnum) && ($highlight($1-)) { 


© mIRC Discussion Forums