mIRC Home    About    Download    Register    News    Help

Print Thread
L
LO_KEY
LO_KEY
L
How can i get around worrying about whether or not ppl install there mIRC to a dir with spaces ?

without havn to not let them use spaces

another spaces error im gettin, is if the person usin my file server, sets the trigger to have a root dir that has spaces in it, it messes up the script......

SPACES !!!!!!! GOTO HELL!!!!!!! mad

Joined: Dec 2002
Posts: 230
G
Fjord artisan
Offline
Fjord artisan
G
Joined: Dec 2002
Posts: 230
use quotes ("c:\program files\mirc") or $shortfn()

L
LO_KEY
LO_KEY
L
ehhhhhhh

how?

alias read_ini return $readini($mircdirAvalon\Options.ini,$1,$2)

use

alias read_ini return $readini(" $mircdirAvalon\Options.ini ",$1,$2)

instead ?

Joined: Dec 2002
Posts: 230
G
Fjord artisan
Offline
Fjord artisan
G
Joined: Dec 2002
Posts: 230
try alias read_ini return $readini($+(",$mircdir,Avalon\Options.ini"),$1,$2)

Last edited by greeny; 24/03/03 08:39 PM.
L
LO_KEY
LO_KEY
L
alias rite_ini return writeini $mircdirAvalon\Options.ini
alias rem_ini return remini $mircdirAvalon\Options.ini

alias rite_ini return writeini ",$mircdirAvalon\Options.ini"
alias rem_ini return remini ",$mircdirAvalon\Options.ini"

and if so, what exactly is that doing?

ok, i changed the three alias's to...

alias read_ini return $readini(" $+ $mircdirAvalon\Options.ini $+ " ,$1,$2)
alias rite_ini return writeini " $+ $mircdirAvalon\Options.ini $+ "
alias rem_ini return remini " $+ $mircdirAvalon\Options.ini $+ "

and it seems to let them change the settings now without prob of it saving what they changed....

Only prob now is that, when sumone type the trigger
and the trigger root dir has spaces in it, it says this for its error....

* /fserve: no such file 'C:\Documents and Settings\Default\Desktop\mIRC\and' (line 1375, Avalon.mrc)

that line in the code is....
fserve $nick 99 $read_ini(Triggers,$replace($1-,$chr(32),&))

in the ini file is...

[Triggers]
testing&t=C:\Documents and Settings\Default\Desktop\Dialogs\

so i dunno how or even where its gettin that dir from ....

Last edited by LO_KEY; 24/03/03 09:10 PM.
G
GBX
GBX
G
try alias rite_ini return writeini $+(",$mircdir,Avalon\Options.ini")
or alias rite_ini return writeini $shortfn($mircdir $+ Avalon\Options.ini)

you have to use $shortfn
fserve $nick 99 $shortfn($read_ini(Triggers,$replace($1-,$chr(32),&)))
or else again with "
fserve $nick 99 " $+ $read_ini(Triggers,$replace($1-,$chr(32),&)) $+ "

Last edited by GBX; 24/03/03 09:20 PM.
L
LO_KEY
LO_KEY
L
woooooooho SPACES ARN NO LONGER A THREAT!!!!


thank you so much GBX

What does usin the "" do ?


G
GBX
GBX
G
the same but with long file names
parameters are separated by spaces, it is impossible for mirc to decide if it is one parameter with a space in it or 2 parameters
so you have to explicitly mark a string as one parameter with "

C:\Program Files\ <= 2 params
"C:\Program Files\" <= 1 param


Link Copied to Clipboard