mIRC Home    About    Download    Register    News    Help

Print Thread
#4186 31/12/02 08:28 AM
Joined: Dec 2002
Posts: 3
S
seaner Offline OP
Self-satisified door
OP Offline
Self-satisified door
S
Joined: Dec 2002
Posts: 3
Is there an identifier that has the full text without being tokenised thus having excessive spaces removed?

If there isn't I think that there should be one implemented. An example is where the services send a space-aligned listing of something and I have an on text script to display it on my screen, but because the text has been tokenised, $1- has had spaces removed, which causes the space alignment to be removed.

I hope I've made some sense. confused

#4187 31/12/02 09:02 AM
Joined: Dec 2002
Posts: 103
Vogon poet
Offline
Vogon poet
Joined: Dec 2002
Posts: 103
Nope.

Search the forums for 'multiple spaces'... this is a frequently occuring problem and basically the reply is: No.

#4188 01/01/03 05:46 PM
Joined: Dec 2002
Posts: 3
S
seaner Offline OP
Self-satisified door
OP Offline
Self-satisified door
S
Joined: Dec 2002
Posts: 3
What do you mean the reply is no? No to what?

This, 'problem' can easily be remedied by the addition of an identifer that contains the text before it's put into tokens.

#4189 01/01/03 08:43 PM
Joined: Dec 2002
Posts: 103
Vogon poet
Offline
Vogon poet
Joined: Dec 2002
Posts: 103
This is a frequently occuring problem of stripping excess whitespaces from text, and has come up heaps of times over heaps of versions of mIRC. People have suggested having an event with the original text, or $fulltext, etc... but the suggestions are never taken up -- most likely because it would cause fundamental changes to the mIRC scripting engine.

#4190 01/01/03 09:42 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
/me thinks Khaled should use a lex & yacc (or flex & bison) based language. It would make it faster, and it would fix just about every problem mIRC has with the script engine. Would it be easy? No, but it could be done, and it would only make things better.

#4191 02/01/03 03:27 AM
Joined: Dec 2002
Posts: 3
S
seaner Offline OP
Self-satisified door
OP Offline
Self-satisified door
S
Joined: Dec 2002
Posts: 3
If it requires fundamental changes to the scripting engine, maybe Khaled should be commenting on this issue directly. It's a very common issue and many people would be pleased if part of this problem could be rectified.

I'm only calling for $fulltext or what ever to be added to on text events, etc. I have read other posts regarding this issue and they call for complete changes that I don't think are necessary, or that could be implemented over time.

#4192 02/01/03 04:23 AM
Joined: Dec 2002
Posts: 103
Vogon poet
Offline
Vogon poet
Joined: Dec 2002
Posts: 103
> maybe Khaled should be commenting on this issue directly.

I think Tjerk mentioned that he was away ATM, and I suspect he commented on this in the previous forums, though couldn't hurt to comment here again.

> I'm only calling for $fulltext or what ever to be added to on
> text events, etc

Yes, but what happens once you try pass it to an alias? It'll lose its formatting. Same with custom identifiers, and most likely internal identifiers like $mid() $left() $right().

#4193 02/01/03 12:49 PM
Joined: Dec 2002
Posts: 31
N
Ameglian cow
Offline
Ameglian cow
N
Joined: Dec 2002
Posts: 31
I agree that it may be too much to ask to change how mIRC parses things, but I would ask if it was possible to create something to the effect of a binvar that contains an event's text unparsed... anything else, if you really needed to have it spaced, you can do yourself with binary variables since they're global.

#4194 02/01/03 06:28 PM
Joined: Dec 2002
Posts: 103
Vogon poet
Offline
Vogon poet
Joined: Dec 2002
Posts: 103
Hmmm yeah a binvar might work, interesting...

#4195 08/01/03 09:00 AM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
"Same with custom identifiers, and most likely internal identifiers like $mid() $left() $right()."

Nope. Identifiers (whether custom or internal) can handle consecutive spaces, only /commands have that limitation. A $fulltext identifier would still be of great use (you could insert $chr(2) pairs, for example, between two spaces and then use /echo etc)

By the way, it's a shame the old boards are gone, there was a LOT of stuff in there for people to search frown


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

Link Copied to Clipboard