The problem is you use /writeini in the editbox with only one / and you already know that in remote, $chr(3) will be evaluated so you have to use $!chr(3).
You can use this method but the fact is that mirc not accept color his proper .ini file (create with /writeini)