mIRC Home    About    Download    Register    News    Help

Topic Options
#233088 - 13/07/11 12:04 AM Unilimted Highlight & regex tick box ?
ircuser Offline
Pikka bird

Registered: 05/07/11
Posts: 16
Unilimted Highlight, is there a way to restore it in mirc 7.19 ? I stay away from PC so I need to come back and see it still flashing ?

what is regex tick box for ? when you need to use slashes and $me ?

Top
#233089 - 13/07/11 12:16 AM Re: Unilimted Highlight & regex tick box ? [Re: ircuser]
argv0 Offline
Planetary brain

Registered: 13/10/03
Posts: 3918
Loc: Montreal, QC, Canada
Unlimited message flashing can be done by just selecting the first option '--'.

The regex checkbox enables the match as being a regular expression. If you don't know what that is, you don't need it.
_________________________
- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"

Top
#233090 - 13/07/11 12:28 AM Re: Unilimted Highlight & regex tick box ? [Re: argv0]
ircuser Offline
Pikka bird

Registered: 05/07/11
Posts: 16
Originally Posted By: argv0
Unlimited message flashing can be done by just selecting the first option '--'.

The regex checkbox enables the match as being a regular expression. If you don't know what that is, you don't need it.


argv0 I tried it while replying to you and I was using $me and regex ticked and it didn't flash once !

you need regex tick box to activate $ sign in $me so it would translate into my current nick instead of "$me" ?

I am reading the help file of mirc, I hoping to find a way to highlight based on mask ? am I reading in the right place ?


Edited by ircuser (13/07/11 12:33 AM)

Top
#233091 - 13/07/11 12:29 AM Re: Unilimted Highlight & regex tick box ? [Re: ircuser]
argv0 Offline
Planetary brain

Registered: 13/10/03
Posts: 3918
Loc: Montreal, QC, Canada
No, the regex checkbox is only for regular expressions (the feature is linked above), not basic identifier expansion.
_________________________
- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"

Top
#233092 - 13/07/11 12:35 AM Re: Unilimted Highlight & regex tick box ? [Re: argv0]
ircuser Offline
Pikka bird

Registered: 05/07/11
Posts: 16
Originally Posted By: argv0
No, the regex checkbox is only for regular expressions (the feature is linked above), not basic identifier expansion.


sorry I changed post before seeing your reply so regarding highlight I must have got the highlight line wrong, I will try it with my nick in plain text.

Could that site help regarding highlting on certain masks ? like: highlight if mask is *@123254.523265*


Edited by ircuser (13/07/11 12:47 AM)

Top
#233095 - 13/07/11 02:47 AM Re: Unilimted Highlight & regex tick box ? [Re: ircuser]
Horstl Offline
Hoopy frood

Registered: 03/11/06
Posts: 1559
Loc: Germany
Afaik there's currently no way to use the internal highlight feature to check the user's address. You're allowed to use custom identifiers just like you may use internal identifiers (like $me). But inside their scope, neither $fulladdress nor $address nor $site are filled with a value (at least one would be required for you), not even $nick.

If for example you would put this highlight:
Code:
$customhighlight( $!nick - $!address - $!site - $!me - $!1- )
and add this alias:
Code:
alias customhighlight {
  timer -m 1 1 echo -s $!!1-: $1- target: $target nick: $nick address: $address site: $site 
  timer -m 1 2 echo -s chan: $chan cid: $cid network: $network wid: $wid
}
Some identifiers would be filled - but not the ones you'd need. (Note that without timer no echo will display at all.)

To have at least hostmask-related identifiers filled may be worth a feature suggestion.

For the moment, I suggest to try the "nick colors" feature which allows you to highlight the nickname matching a certain mask in both the channel/query and the nicklist (but without any beep/flash etc options).
The other option would be to script your own custom highlight with "on text" and "on action" events (where $address etc are filled), replacing the default text display - like in a "theme"-script. The big downside is that it would most likely interfere with the theme you may actually use.

Top
#233100 - 13/07/11 04:24 PM Re: Unilimted Highlight & regex tick box ? [Re: Horstl]
ircuser Offline
Pikka bird

Registered: 05/07/11
Posts: 16
Originally Posted By: Horstl
Afaik there's currently no way to use the internal highlight feature to check the user's address. You're allowed to use custom identifiers just like you may use internal identifiers (like $me). But inside their scope, neither $fulladdress nor $address nor $site are filled with a value (at least one would be required for you), not even $nick.

If for example you would put this highlight:
Code:
$customhighlight( $!nick - $!address - $!site - $!me - $!1- )
and add this alias:
Code:
alias customhighlight {
  timer -m 1 1 echo -s $!!1-: $1- target: $target nick: $nick address: $address site: $site 
  timer -m 1 2 echo -s chan: $chan cid: $cid network: $network wid: $wid
}
Some identifiers would be filled - but not the ones you'd need. (Note that without timer no echo will display at all.)

To have at least hostmask-related identifiers filled may be worth a feature suggestion.

For the moment, I suggest to try the "nick colors" feature which allows you to highlight the nickname matching a certain mask in both the channel/query and the nicklist (but without any beep/flash etc options).
The other option would be to script your own custom highlight with "on text" and "on action" events (where $address etc are filled), replacing the default text display - like in a "theme"-script. The big downside is that it would most likely interfere with the theme you may actually use.


Thanks Horstl for the detailed answer, I am sorry I don't get everything you said but I see the picture, I'll keep your comments until I can use them one day smile

Could you just tell me if I copy pasted the highlight you did and the timer, what would be highlighted ?

Top
#233109 - 13/07/11 10:48 PM Re: Unilimted Highlight & regex tick box ? [Re: ircuser]
Horstl Offline
Hoopy frood

Registered: 03/11/06
Posts: 1559
Loc: Germany
Nothing would be highlighted - I put it only to show which of the pertinent internal identifiers are or are not returning a value to the custom identifier "$customhighlight" (be it passed as a parameter to the identifier, or called in it's routine).
If $address *would* work therein, it could be used for a trick/hack so to speak: the way you can put $me at highligt, which returns your current nickname so that this value is checked against the incoming text, similarly a custom identifier could compare the user's $address against a given hostmask, and in case of a match return a wildcard or else return nothing. The value returned by the identifier would be compared against the incoming text as usual, and could trigger the actual highlight. A somewhat intricate approach, even if it *would* work... laugh


Edited by Horstl (13/07/11 10:57 PM)

Top
#233130 - 15/07/11 04:02 PM Re: Unilimted Highlight & regex tick box ? [Re: Horstl]
ircuser Offline
Pikka bird

Registered: 05/07/11
Posts: 16
Originally Posted By: Horstl
Nothing would be highlighted - I put it only to show which of the pertinent internal identifiers are or are not returning a value to the custom identifier "$customhighlight" (be it passed as a parameter to the identifier, or called in it's routine).
If $address *would* work therein, it could be used for a trick/hack so to speak: the way you can put $me at highligt, which returns your current nickname so that this value is checked against the incoming text, similarly a custom identifier could compare the user's $address against a given hostmask, and in case of a match return a wildcard or else return nothing. The value returned by the identifier would be compared against the incoming text as usual, and could trigger the actual highlight. A somewhat intricate approach, even if it *would* work... laugh


I can't thank you enough Horstl, I see your point, I think I will keep looking for a snippet and maybe start learning the basics at least although this subject doesn't seem well documented to me in one place, thanks for the help smile

Top