mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Feb 2003
Posts: 83
L
LO_KEY Offline OP
Babel fish
OP Offline
Babel fish
L
Joined: Feb 2003
Posts: 83
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


any help would make me happy
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()

Joined: Feb 2003
Posts: 83
L
LO_KEY Offline OP
Babel fish
OP Offline
Babel fish
L
Joined: Feb 2003
Posts: 83
ehhhhhhh

how?

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

use

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

instead ?


any help would make me happy
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.
Joined: Feb 2003
Posts: 83
L
LO_KEY Offline OP
Babel fish
OP Offline
Babel fish
L
Joined: Feb 2003
Posts: 83
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.

any help would make me happy
Joined: Mar 2003
Posts: 31
G
GBX Offline
Ameglian cow
Offline
Ameglian cow
G
Joined: Mar 2003
Posts: 31
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.
Joined: Feb 2003
Posts: 83
L
LO_KEY Offline OP
Babel fish
OP Offline
Babel fish
L
Joined: Feb 2003
Posts: 83
woooooooho SPACES ARN NO LONGER A THREAT!!!!


thank you so much GBX

What does usin the "" do ?



any help would make me happy
Joined: Mar 2003
Posts: 31
G
GBX Offline
Ameglian cow
Offline
Ameglian cow
G
Joined: Mar 2003
Posts: 31
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