mIRC Home    About    Download    Register    News    Help

Print Thread
Option to change dividers around nicks #119893 10/05/05 11:47 PM
Joined: May 2005
Posts: 1
L
LDK Offline OP
Mostly harmless
OP Offline
Mostly harmless
L
Joined: May 2005
Posts: 1
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.

Re: Option to change dividers around nicks #119894 11/05/05 12:28 AM
Joined: Nov 2003
Posts: 257
A
alkahol1k Offline
Fjord artisan
Offline
Fjord artisan
A
Joined: Nov 2003
Posts: 257
This can be easily scripted, most likely the reason why it's left out of the options.

Re: Option to change dividers around nicks #119895 11/05/05 12:36 AM
Joined: Dec 2002
Posts: 208
H
Hrung Offline
Fjord artisan
Offline
Fjord artisan
H
Joined: Dec 2002
Posts: 208
One good reason for the option to be built-in is the consecutive-space-losingness of script.


If I knew now what I will know then... maybe things will have been different...
Re: Option to change dividers around nicks #119896 11/05/05 03:07 AM
Joined: Sep 2003
Posts: 4,230
D
DaveC Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
Thats easy to fix

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

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

Re: Option to change dividers around nicks #119897 11/05/05 04:26 AM
Joined: Dec 2002
Posts: 208
H
Hrung Offline
Fjord artisan
Offline
Fjord artisan
H
Joined: Dec 2002
Posts: 208
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.

If I knew now what I will know then... maybe things will have been different...
Re: Option to change dividers around nicks #119898 11/05/05 04:41 AM
Joined: Mar 2004
Posts: 540
A
Armada Offline
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.

Re: Option to change dividers around nicks #119899 11/05/05 08:25 AM
Joined: Sep 2003
Posts: 4,230
D
DaveC Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
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)

Re: Option to change dividers around nicks #119900 13/05/05 09:28 PM
Joined: Oct 2003
Posts: 3,918
A
argv0 Offline
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
I thought there was a $rawmsg for those who wanted access to the space-preserved data


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
Re: Option to change dividers around nicks #119901 14/05/05 04:22 PM
Joined: Aug 2004
Posts: 24
B
Biggles Offline
Ameglian cow
Offline
Ameglian cow
B
Joined: Aug 2004
Posts: 24
I think mIRC should go one better and have an in-built theme engine.

Re: Option to change dividers around nicks #119902 14/05/05 08:17 PM
Joined: Sep 2003
Posts: 4,230
D
DaveC Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
$rawmsg is inbound text, doesnt exists unfortunitly on outbound text.

Re: Option to change dividers around nicks #119903 15/05/05 07:21 AM
Joined: Jan 2003
Posts: 56
E
Ecronika Offline
Babel fish
Offline
Babel fish
E
Joined: Jan 2003
Posts: 56
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.

Ecronika
My mIRC Addons
Re: Option to change dividers around nicks #119904 16/05/05 03:20 AM
Joined: Jan 2005
Posts: 20
C
C45P3R Offline
Ameglian cow
Offline
Ameglian cow
C
Joined: Jan 2005
Posts: 20
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.

Re: Option to change dividers around nicks #119905 16/05/05 08:08 AM
Joined: Dec 2002
Posts: 208
H
Hrung Offline
Fjord artisan
Offline
Fjord artisan
H
Joined: Dec 2002
Posts: 208
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.


If I knew now what I will know then... maybe things will have been different...
Re: Option to change dividers around nicks #119906 16/05/05 12:50 PM
Joined: Oct 2004
Posts: 8,330
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
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.


Invision Support
#Invision on irc.irchighway.net
Re: Option to change dividers around nicks #119907 16/05/05 02:51 PM
Joined: Dec 2002
Posts: 1,527
L
landonsandor Offline
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,527
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
Re: Option to change dividers around nicks #119908 16/05/05 09:34 PM
Joined: Jan 2003
Posts: 56
E
Ecronika Offline
Babel fish
Offline
Babel fish
E
Joined: Jan 2003
Posts: 56
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


Ecronika
My mIRC Addons