Thanks that's a great help, athough I dont quite understand how it works with the rest because with the eval in, it complicates it a bit more and I tried a bit of experimenting, but I'm still not certain. If you could just clarify this for me, I'd really apreciate it

This is what works without the eval and variables in, how could I replace Myname with $me (and the rest of the new code)?

on $1:text:/Myname,? test/:#:/echo It worked

I've tried doing it with the new code, but it doesnt work because of the commas and I'm not sure how to get around this.

Thanks again, I'm new to the mirc scripting language, so please bear with me frown