mIRC Home    About    Download    Register    News    Help

Print Thread
Highlight gets the wrong match #59824 11/11/03 06:45 AM
Joined: Nov 2003
Posts: 3
Z
zerapio Offline OP
Self-satisified door
OP Offline
Self-satisified door
Z
Joined: Nov 2003
Posts: 3
I've spent quit some time searching for this bug with no results, sorry if this is a repost.

Many people call me 'z' for short and I want mirc to highlight that. The problem is that along with the letter 'z', mirc alzo highlights things like zzz, z4, and those should not be highlighted. I've tried putting a space in the pattern but then I don't see when someone types z and then enter (just my letter).

This problem has been around since I can remember. I can confirm seeing it on 6.11, 6.12 and I think that on 6.10 too.

Thanks for your time and have a nice day smile

zerapio

Re: Highlight gets the wrong match #59825 11/11/03 04:57 PM
Joined: Nov 2003
Posts: 6
D
droi Offline
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
D
Joined: Nov 2003
Posts: 6
Try ?z?


Mess with the best, die like the rest!
Re: Highlight gets the wrong match #59826 11/11/03 05:13 PM
Joined: Jan 2003
Posts: 2,523
Q
qwerty Offline
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
I think this should be in Feature Suggestions. It's not a bug, it's intended to work this way. We just need an extra checkbox like "Match whole word only" in Highlight Add dialog.

In the meantime, you can put %z instead of z in the Highlight list and the following code in Remote:
Code:
on ^*:text:*z*:*: if $istok($strip($1-),z,32) { set -u1 %z $1- }


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
Re: Highlight gets the wrong match #59827 12/11/03 01:16 AM
Joined: Nov 2003
Posts: 3
Z
zerapio Offline OP
Self-satisified door
OP Offline
Self-satisified door
Z
Joined: Nov 2003
Posts: 3
Thaks guys, I'll try that when I get home tonight

Re: Highlight gets the wrong match #59828 12/11/03 03:49 AM
Joined: Nov 2003
Posts: 3
Z
zerapio Offline OP
Self-satisified door
OP Offline
Self-satisified door
Z
Joined: Nov 2003
Posts: 3
It didn't work. The same thing kept happening.

I guess I'll have to wait until that "feature" makes it to a release.

Re: Highlight gets the wrong match #59829 12/11/03 11:03 AM
Joined: Jan 2003
Posts: 2,523
Q
qwerty Offline
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
Strange, I've tested it and it works fine here. Make sure that remote is activated (type /remote on) and that there aren't other conflicting on TEXT events in the file that contains the particular event. To make sure this isn't the case, put the on TEXT line in a separate file.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com