mIRC Homepage
Posted By: LDK Option to change dividers around nicks - 10/05/05 11:47 PM
I think a very simple yet very helpful improvement to mIRC would be the ability to change the < & > dividers around nicks

For instance, the current look on mIRC is

<Joe> Hi
<Mary> Sup


I would really like to be able to change this to
[Joe] Hi
[Mary] Sup

or any other symbols. The main reason is sometimes I want to copy and paste an amusing quote from IRC into instant messenger, but anything between < and > does not paste. Thanks in advance if you implement this feature.
Posted By: alkahol1k Re: Option to change dividers around nicks - 11/05/05 12:28 AM
This can be easily scripted, most likely the reason why it's left out of the options.
Posted By: Hrung Re: Option to change dividers around nicks - 11/05/05 12:36 AM
One good reason for the option to be built-in is the consecutive-space-losingness of script.
Posted By: DaveC Re: Option to change dividers around nicks - 11/05/05 03:07 AM
Thats easy to fix

$replace(%text,$chr(32),$+($chr(32),))

And since sent text isnt ever that long, the string length limit isnt reached.
Posted By: Hrung Re: Option to change dividers around nicks - 11/05/05 04:26 AM
Quote:
$replace(%text,$chr(32),$+($chr(32),))


That's interesting, but what is %text? I thought we were talking changing the <> around nicks in messages. I suppose it could be done while still preserving spaces for on text events with $rawmsg, but not on input as far as I can tell.
Posted By: Armada Re: Option to change dividers around nicks - 11/05/05 04:41 AM
I like this idea because yes it can be done with scripts but changing the timestamp can be done with scripts to but thats a option, I like it because its just a nice feature I want to change mine to (Nick) but dont want to script it b/c itll interfear with other on texts I have that halt.
Posted By: DaveC Re: Option to change dividers around nicks - 11/05/05 08:25 AM
Quote:
That's interesting, but what is %text? I thought we were talking changing the <> around nicks in messages. I suppose it could be done while still preserving spaces for on text events with $rawmsg, but not on input as far as I can tell.


Ahhh I see where your comming from now, yes it is a bit of a hassel, if its just channel text wi9th spaces in your trying to capture there are work arounds to get it.
I use /debug and pull the string in there, but I believe there is another way, although i havent seen it. It apears alot more difficult if its custom windows, some highspeed timer and using $editbox() (lordy but what a system hog that must be)
Posted By: argv0 Re: Option to change dividers around nicks - 13/05/05 09:28 PM
I thought there was a $rawmsg for those who wanted access to the space-preserved data
Posted By: Biggles Re: Option to change dividers around nicks - 14/05/05 04:22 PM
I think mIRC should go one better and have an in-built theme engine.
Posted By: DaveC Re: Option to change dividers around nicks - 14/05/05 08:17 PM
$rawmsg is inbound text, doesnt exists unfortunitly on outbound text.
Posted By: Ecronika Re: Option to change dividers around nicks - 15/05/05 07:21 AM
You may like to use my Addon Message Extensions as it is done for things like this and it will not loose spaces afaik smile
http://www.mirc.net/projects.php?go=1097394278
Posted By: C45P3R Re: Option to change dividers around nicks - 16/05/05 03:20 AM
It would be interesting to see your definition of easy. Scripting it is anything but easy, just look at the script Ecronica made. Sure just making it [] instead of <> may be easy but then there's checking if show mode is enabled and what color to use if any. I would love to see any beginner at scripting accomplish this on their own.
Posted By: Hrung Re: Option to change dividers around nicks - 16/05/05 08:08 AM
Relatively speaking, it is easy. That isn't to say that a complete beginner could do it in 2 mins. But an experienced scripter could probably do it in less. Depending on how flexible you would want it to be, it could be done with as few as 2 /commands. Compare that to, say, socket scripting, which can take over a dozen lines just to download a page from a website, and that's without actually doing anything with the page you retrieved. When it comes to writing full-featured addons, it is not uncommon to run into the hundreds of lines. No, changing the dividers around nicks is relatively easy.

My argument in favor of this feature is that it is difficult to preserve spaces within incoming text, and, to my knowlege, impossible where outgoing text is concerned. Normally, extra spaces are not important, but it would be nice to be able to put the usual two spaces after the . at the end of a sentence, among other things.

Personally, I would prefer to see some special &binvars for raw text be introduced, and switches to /msg, /notice, /echo, perhaps /raw, to allow direct output of &binvars without losing spaces, as I'm sure I could come up with a use for that in other things. But if it comes down to that, or an option for changing <nick> to something else, I would bet that the general opinion (outside of these forums) is in favor of the latter.
Posted By: Riamus2 Re: Option to change dividers around nicks - 16/05/05 12:50 PM
Well, you can use a non-breaking space... but only some fonts will display it as such.

Also, if I remember correctly, you can also use Ctrl-Enter at the end of the line to send the full spacing. I could be wrong... I can't test this right now because my work doesn't let me connect to any IRC channels... I wish I could bypass that port block... heh.
replied to last posting

personally Ive wanted to see this since we could do it with timestamp and think it should be implemented in mirc itself for the reason of natural progression. now I DONT know how hard it was for K to do it for timestamps, but it shouldnt be hard to do it for nicknames. And yes, I agree that this script IS relatively easy to do, but is also easy to muck up and really fudge things up DISPLAY-WISE
Posted By: Ecronika Re: Option to change dividers around nicks - 16/05/05 09:34 PM
Quote:
My argument in favor of this feature is that it is difficult to preserve spaces within incoming text, and, to my knowlege, impossible where outgoing text is concerned.


Well i did the same things as with the incoming text and it works in most cases. Not the clean "perfect world" way but i think it is good enough for now.

Quote:
Personally, I would prefer to see some special &binvars for raw text be introduced, and switches to /msg, /notice, /echo, perhaps /raw, to allow direct output of &binvars without losing spaces


Me too ... me too ... or any other kind to send such strings to the server smile
© mIRC Discussion Forums