mIRC Home    About    Download    Register    News    Help

Print Thread
Page 2 of 3 1 2 3
#30829 19/06/03 07:04 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
We're still forgetting yes we can have the consecutive spaces returned, but aliases still delimite just like the events do. All passing would have to be redone to accomidate the consecutive spaces. If you pass
(_ = space)
/myalias this_is_a______demo

You still get $4 as demo in the alias. But then again, you could also have the "$rawtext" in the aliase.
(I would prefer a $R1 $R2, etc variable tho. >:D)


-KingTomato
#30830 19/06/03 07:16 PM
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
Well that's whay I was thinking of - the entire language having null token support rather than just an exception for the on TEXT event.


Spelling mistakes, grammatical errors, and stupid comments are intentional.
#30831 19/06/03 07:18 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
I mean what is so wrong with using chr160? Its a good replacement, and would keep compatability.I do say that events like on text, on actions, etc should support multiple spaces, but then after that its up to you to keep the consecutive spaces in tact whether it be by means of $replace, or otherwise when passing to a alias or variable.


-KingTomato
#30832 19/06/03 07:22 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
It will NOT keep compatibility. Char 160 is NOT a space. It is a non-standard extension to the ASCII table. Many fonts use it, yes, but not all. It is NOT standard.

#30833 19/06/03 07:23 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
well i tried several fonts and it alway echos this, for example

//echo -a a $+ $str($chr(160),10) $+ a
returns
a a


new username: tidy_trax
#30834 19/06/03 07:28 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
You tried several _windows_ fonts. Other OSes might not be the same. And remember, IRC != mIRC. People are using other OSes.

#30835 19/06/03 07:31 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
well as far as i know mirc is only compatable for windows, and this is a mirc forum :tongue: ,well if its not a mirc forum then i think the name should be changed from (mIRC Message Board)

Last edited by pheonix; 19/06/03 07:34 PM.

new username: tidy_trax
#30836 19/06/03 08:24 PM
Joined: Dec 2002
Posts: 2,985
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,985
I agree with codemastr - I think it is pointless sending characters to the room that programmes on other operating systems cannot understand. I have used $chr(160) for internal functions such as spacing information in dialogue listboxes as the TAB just puts an ugly square in place rather than shifting the text along a bit. Mind you I'd love to TAB, I just can't be bothered asking if anyone knows a way to do it.

#30837 19/06/03 08:25 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
[]1,1space[]4,1There's 5 spaces >:D


-KingTomato
#30838 19/06/03 08:35 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
as i said this is a mirc message board, so why should i even consider other os's when mirc is only compatible for windows :tongue: ?


new username: tidy_trax
#30839 19/06/03 08:39 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Because there are chat programs for other operating system, making any text sent over IRC subject to any circumstance. Why not make it universal >:D


-KingTomato
#30840 19/06/03 08:42 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
speak english when speaking to illiterate people blush


new username: tidy_trax
#30841 20/06/03 12:13 PM
Joined: Apr 2003
Posts: 26
P
Ameglian cow
OP Offline
Ameglian cow
P
Joined: Apr 2003
Posts: 26
[offtopic]
Just wanted everyone to know that 1K posts has been reached on this forum smile
[/offtopic]

But a $rawtext identifier or null token support would be the best solution IMO

#30842 20/06/03 12:28 PM
Joined: Dec 2002
Posts: 2,985
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,985
What he means is that when you send a unique character to the chatroom only mIRC users will be able to see it. Users of other programmes will not. We all know mIRC dominates by far over anything else and all else added together but that is not to say that mIRC should 'go it alone'. There has to be some sort of conformity or at least discussion with the authors of other programmes and indeed IRCd's when wanting to commit to a feature or function that would otherwise stand alone.

#30843 20/06/03 12:31 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
ok


new username: tidy_trax
#30844 20/06/03 07:27 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
ty watchdog.. couldn't have explained it better myself (or else i would have) laugh


-KingTomato
#30845 01/09/03 03:07 PM
Joined: Sep 2003
Posts: 70
M
Babel fish
Offline
Babel fish
M
Joined: Sep 2003
Posts: 70
The issue has been resolved in mIRC 6.1. The message sent for just about any event is $mid($rawmsg,$calc($pos($rawmsg,$+($chr(32),:),1) +2)). Using single identifiers (including $replace() and $+()) can be done without loss of multiple spaces. The /set command doesn't lose them ether. So you can /set a %variable to something containing the original line of text with its spacing preserved. Of course, you can't /echo it because /echo loses the spaces. What you CAN do is use /loadbuf -e on a file containing only the name of the %variable you want to echo. It's a complicated process, but in the end it lets you echo things without losing the spaces and without putting in hard spaces.

#30846 01/09/03 11:09 PM
Joined: Feb 2003
Posts: 32
P
Ameglian cow
Offline
Ameglian cow
P
Joined: Feb 2003
Posts: 32
i have found another way to do it without using /loadbuf (which wont wrap the same way as /echo -iN, ect.)

Code:
  var %rm = $right($rawmsg,$+(-,$pos($rawmsg,:,2)))
  bwrite temp.txt -1 $eval(%rm,0) 
  bread temp.txt 0 $lof(temp.txt) &temp
  breplace &temp 32 160
  tokenize 32 $replace($bvar(&temp,1-).text,$chr(160),$+(,$chr(32),))
  write -c temp.txt
 


it basically sets a variable for the message, then /bwrites the variable to a file. write would probably also work. also, the $eval(%rm,0) should write the text '%rm' to the file, but instead it writes it's contents. if i try to /bwrite $rawmsg or just the variable, the spacing is lost.

after it is written, the file is read into memory and /breplace is used to replace all spaces with $chr(160). in turn, $chr(160) is turned into ^b^b$chr(32)^b^b (to preserve the spacing without using different characters in place of a space) and tokenized so that $1- will contain the original text but with extra spacing included.

the only downside is that any $chr(160)'s in the original text would be converted to a space, but since $chr(160) is commonly used as a replacement for $chr(32), i am willing to accept this.

#30847 01/09/03 11:24 PM
Joined: Sep 2003
Posts: 70
M
Babel fish
Offline
Babel fish
M
Joined: Sep 2003
Posts: 70
The only differences in behavior between /loadbuf and /echo that I've noticed are that /loadbuf automatically scrolls to the bottom of the window, and that it doesn't keep track of your place properly, which indeed may be annoying enough to make your method worthwhile. /loadbuf wraps the same way, to my knowledge, if you use the -pi2 switches. Also, I see no reason why you cannot use $replace($right($rawmsg,$+(-,$pos($rawmsg,:,2))),$chr(32),$+(,$chr(32),)), and thus avoid reading/writing a file, and losing $chr(160).

But for me, I can accept no loss of information.

#30848 01/09/03 11:25 PM
Joined: Feb 2003
Posts: 32
P
Ameglian cow
Offline
Ameglian cow
P
Joined: Feb 2003
Posts: 32
Code:
tokenize 32 $replace($right($rawmsg,$+(-,$pos($rawmsg,:,2))),$chr(32),$+(,$chr(32),))


that also works. i knew i shouldnt post the first solution i found ;/

Page 2 of 3 1 2 3

Link Copied to Clipboard