mIRC Home    About    Download    Register    News    Help

Print Thread
#205800 01/11/08 01:37 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
How can i keep bold/underline/color's when i write a line to a ini file? $eval(,N) don't help me here smirk


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
sparta #205801 01/11/08 01:57 PM
Joined: Jan 2007
Posts: 1,156
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
That's a good question. May have to use a text file instead and use /filter.

sparta #205802 01/11/08 01:58 PM
Joined: Nov 2006
Posts: 1,559
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
Maybe $replace the control chars with something improbable (or preferable: not "allowed" if it's e.g. a specific dialog input and not a "free text"), and convert it back on readini.
Or, If it's only a short string: writeini $encode(X,m) and $decode($readini(X),m).

...found this one :P

Last edited by Horstl; 01/11/08 02:11 PM.
Horstl #205805 01/11/08 02:43 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
hehe, forgot about that post :P you got stuck, then you don't think clear grin

another one wink

set %lserver.list $readini(scripts\ini\settings.ini,n,last,servers)

should set the value from the ini file, but it don't. it only get the first one, the ini looks like:

servers=server1:6668!server2:6665!server3:6667

how come it only return the "server1", the : char should not halt the script?

hmm, restarted mirc, then it working as it should..

Last edited by sparta; 01/11/08 02:51 PM.

if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }

Link Copied to Clipboard