I've got my own mIRC script I'm writing, learning as I go.

One thing I've stumbled over... I'm using a right click menu action to re-write portions of another script and then unload/reload it.

Thus far one major holdup. I don't see any way to force /write to NOT interpret what it's writing.

Here's what I'm testing with, it's a menu entry on a script...
.Add $gettok($1,5,32):{ $read(test.txt,w,*test*) | write -i$readn test.txt if $chr(36) $+ address == $$2 }

Trying to output to file, litereally "if $address == $$2". However, I get the error saying IF Unknown Command because mIRC is trying to interpret the "if $chr" part as if it were a script.

Someone clue me in on how to format the /write statement so mIRC just dumps it without trying to execute it. I've tried using $chr for the i and f, but even that returns the same error hehe. Quoting the written text also didn't help.

I'm assuming there has to be some format like the $read, whereby you could do (write,test.txt,if blablabla) so that mIRC would not try to execute the text it should be writing.

Thanks in advance. smile :tongue: