What ? What the purpose of lock mirc AND your script ? Lock mirc will lock your script... And i don't seems to understand what you want, you want a way to automatically open mirc again (from tray) and fill the lock dialog with the "set pass" ?


#mircscripting @ irc.swiftirc.net == the best mIRC help channel