Hi here...
Just showed up for two small, quick suggestions I don't really expect Khaled to add at all for they're so simple...
First, I would really appreciate if there were a /url command that serves to -add- an new url to mirc's url.ini file...
It happens that, one of those days I was writing an dialog which function was manage mirc's 'url catcher'(The system that automatically stores all urls mirc logs in channels query ect) with more simplicity... when I was writing the 'add' button I noted the only way one could possibly add an new url was by echo-ing it into an hidden @window... well, It'd be really neat to have an option in the /url command which permits the user to add an http page, for even though the url is added by the acho, it's class within the mirc's list is always '?'...
Also the /writeini command...
Wouldn't it be nice if somehow some characters such as $chr(3), $chr(2)... $chr(31) ect could be writen into the file?
Seemingly it's not quite comfortable to write the famous 'auto color' system(An script that auto completes one's messages into a channel or query automatically with a prefix and sufixal color information, such as this:
[time stamp] <nick> <use's automatic colored prefix> <user's message info.> <use's automatic colored sufix>) with the actual /writeini command, for the stored information usually is striped the colors and bold ect.. if /writeini could write said characters it'd be much easier to store the 'auto color' script's information into a .ini without actually needing to write your own routine to avoid mirc's /writeini stripping of characters...
A friend whose nick is 'Rcoster' wrote one:
alias writeini2 {
%f = $iif($pos($1-,",1),$mid($1-,0,$pos($1-,",2)),$1)
tokenize 32 $right($1-,$calc($len(%f)*-1))
if !$len($2) || !$len($3) {
remini %f $1-
halt
}
if $read(%f,w,$+([,$1,])) {
%l = $calc($readn +1)
if $read(%f,w,$2 $+ =*,%l) && $ini(%f,$1,$2) {
write -l $+ $readn %f $+($2,=,$3-)
halt
}
write -il $+ %l %f $+($2,=,$3-)
}
else { write %f $+($lf,[,$1,],$lf,$2,=,$3-)
}
}
;'writeini2' is made by Rcoster, please give credit if you decide using it!
It's an exellent routine and it works perfectly but still, he couldn't write a 'readini2' that could fullfil the expectations...
It'd really be nice to have those commands reformulated in order to write and read mentioned characters.
Well that's all, and I apologize for the size of the post