mIRC Home    About    Download    Register    News    Help

Print Thread
L
LDK
LDK
L
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.

A
alkahol1k
alkahol1k
A
This can be easily scripted, most likely the reason why it's left out of the options.

Joined: Dec 2002
Posts: 206
H
Fjord artisan
Offline
Fjord artisan
H
Joined: Dec 2002
Posts: 206
One good reason for the option to be built-in is the consecutive-space-losingness of script.

D
DaveC
DaveC
D
Thats easy to fix

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

And since sent text isnt ever that long, the string length limit isnt reached.

Joined: Dec 2002
Posts: 206
H
Fjord artisan
Offline
Fjord artisan
H
Joined: Dec 2002
Posts: 206
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.

Last edited by Hrung; 11/05/05 04:27 AM.
Joined: Mar 2004
Posts: 540
A
Fjord artisan
Offline
Fjord artisan
A
Joined: Mar 2004
Posts: 540
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.

D
DaveC
DaveC
D
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)

Joined: Oct 2003
Posts: 3,641
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,641
I thought there was a $rawmsg for those who wanted access to the space-preserved data

B
Biggles
Biggles
B
I think mIRC should go one better and have an in-built theme engine.

D
DaveC
DaveC
D
$rawmsg is inbound text, doesnt exists unfortunitly on outbound text.

E
Ecronika
Ecronika
E
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

Last edited by Ecronika; 15/05/05 07:22 AM.
C
C45P3R
C45P3R
C
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.

Joined: Dec 2002
Posts: 206
H
Fjord artisan
Offline
Fjord artisan
H
Joined: Dec 2002
Posts: 206
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.

Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
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.

Joined: Dec 2002
Posts: 1,536
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,536
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


Those who fail history are doomed to repeat it
E
Ecronika
Ecronika
E
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


Link Copied to Clipboard