You can use DDE to send commands to mirc. I don't have any examples of DDE used in this way though.