Right, I missed the fact you were using /scon from the editbox with only one slash, which does not evaluate the line, so $server is evaluated once.
Even though /server will work here because mIRC has the data internally, I don't think there is a way to get the password used to connect to the server in /server, that might be an useful addition.
Last edited by Wims; 18/06/14 10:20 PM.