Thanks for the registry hint.
The thing is, when second wlm with the same account logged in, it will also change the name. Now you end up with two scripts fighting over the "correct" name...
So far the only thing I could think of, is to send account ID along with the computer name to a remote server (and do it, let's say, every minute), and in return the server returns list of computer names that are currently logged in. Based on that return, mpl script updates the name.
[EDIT]
That HKEY_CURRENT_USER\Software\Microsoft\MSNMessenger\MachineName is binary format, it returns an object, what do I do with it?
[EDIT2]
found matty's class, it's working fine for this purpose
http://shoutbox.menthix.net/showthread.php?tid=65...d=718706#pid718706