mIRC Home    About    Download    Register    News    Help

Print Thread
#50574 21/09/03 12:02 PM
Joined: Dec 2002
Posts: 196
T
Vogon poet
OP Offline
Vogon poet
T
Joined: Dec 2002
Posts: 196
As I mentioned in another thread, it would be easier for Khaled to read it here I guess...

I know there have been many threads about it, and instead of messing around with binary variables, I would like to suggest something instead.

/mecho --> will echo the text with multiple spaces

Or, if the user prefers to have multiple spaces only in a certain part of the script,

/echo blah blah $mecho(text here)

And, instead of using $1, $2 etc, have

$m1, $m2, $m3 etc... for accepting multiple spaces.

This would be easier in many cases.

Of course, $1 etc will also work with multiple spaces when used with /mecho.


trenzterra
AustNet #trenzterra and #w
Head Scripter @ http://trenzterra.uni.cc
#50575 21/09/03 01:11 PM
Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
I think the issue here isn't so much that Khaled does it, and makes it easy... but that Khaled does it. This is why most of the suggestions include &binvars, because this would be the easiest method to impliment.

Your suggestion would require that Khaled tear down the scripting engine and rewrite mIRC from scratch. It is something I imagine Khaled isn't interested in doing.

- Raccoon


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
#50576 21/09/03 01:30 PM
Joined: Dec 2002
Posts: 196
T
Vogon poet
OP Offline
Vogon poet
T
Joined: Dec 2002
Posts: 196
But why does it do so? That's what I can't understand.

I have several problems when using $chr(160) as a replacement...


trenzterra
AustNet #trenzterra and #w
Head Scripter @ http://trenzterra.uni.cc
#50577 21/09/03 04:33 PM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
You're probably right, it sounds a lot easier to make /echo work with &binvars (with a new switch).


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
#50578 22/09/03 09:07 AM
Joined: Dec 2002
Posts: 196
T
Vogon poet
OP Offline
Vogon poet
T
Joined: Dec 2002
Posts: 196
yeah, maybe /echo -z for example


trenzterra
AustNet #trenzterra and #w
Head Scripter @ http://trenzterra.uni.cc
#50579 05/10/03 01:12 PM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
try this

alias mecho return $replace($2-,$1,$chr(160),$chr(32),$chr(44))

/echo blah blah $mecho(_,this_is__a__test,so_there_______!)

Heres the output > blah·blah·this·is··a··test,so·there········!

NB: In the above output · (dot) represents space as u cant show multiple spaces here.

$mecho is formated as $mecho(Char,Text)
Char is the character representing a space
Text is the text with spaces replaced by Char

Limitations:
Char cant be , (comma)
Text cant have actual spaces in it they end up as commas



Link Copied to Clipboard