tested with a timer, it working, but a timer running every second, not good and couldent figure out anything else. since when i unlock mirc with it's default "unlock" i cant grab anything from within mirc, it dosen't trigger any event when unlocking..
Indeed, the only solution is to use a timer, it's not a clean solution, would be better to know exactly with an event (on unlock ?) but don't worry, running a time every second won't change anything, especially if you just check for $locked
#mircscripting @ irc.swiftirc.net == the best mIRC help channel