Home
About
Download
Register
News
Help
Register
Log In
Forums
Scripts & Popups
Check string for highlight
Forums
Active Threads
Search
Who's Online
Help
Print Thread
Check string for highlight
#
226056
17/09/10
08:22 AM
Joined:
Nov 2009
Posts: 81
V
Voglea
OP
Babel fish
OP
Voglea
Babel fish
V
Joined:
Nov 2009
Posts: 81
How to fast check string for highlights?
Request snippet
Highlights sets in Alt + B "Highlight" dialog.
on ^&*:TEXT:*:#: {
; if highlight is turned on
if ($highlight) {
if ($check_for_highlight($1-)) {
echo highlight!
}
}
}
Copy Link to Clipboard
Re: Check string for highlight
Voglea
#
226057
17/09/10
08:55 AM
Joined:
Jun 2007
Posts: 933
5
5618
Hoopy frood
5618
Hoopy frood
5
Joined:
Jun 2007
Posts: 933
See /help $highlight
Second entry: $highligh(N/text) returns a value if <text> matches a highlight.
Copy Link to Clipboard
Re: Check string for highlight
Voglea
#
226059
17/09/10
10:49 AM
Joined:
Nov 2009
Posts: 81
V
Voglea
OP
Babel fish
OP
Voglea
Babel fish
V
Joined:
Nov 2009
Posts: 81
oh. thanks
Copy Link to Clipboard
Re: Check string for highlight
Voglea
#
226063
17/09/10
03:22 PM
Joined:
Feb 2006
Posts: 546
J
jaytea
Fjord artisan
jaytea
Fjord artisan
J
Joined:
Feb 2006
Posts: 546
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-)) {
"The only excuse for making a useless script is that one admires it intensely" - Oscar Wilde
Copy Link to Clipboard
Hop To
News and Discussions ------
Latest News
General Discussion
Support ------
mIRC Help
Connection Issues
Scripts & Popups
Development ------
Feature Suggestions
Developers
Bug Reports
Print Thread
Switch to Threaded Mode
Show Likes
Link Copied to Clipboard
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
Forum Rules
·
Mark All Read
Contact Us
·
Help
·
mIRC Homepage