quote:
Originally posted by matty
Javascript code:
function OnEvent_Initialize(bMessengerStart) { OnEvent_ChatListWndCreated(); }
function OnEvent_SigninReady(sEmail) { OnEvent_ChatListWndCreated(); }
function OnEvent_ChatListWndCreated() {
if (Messenger.ContactListWndHandle === 0) return;
var lpsz = Interop.Allocate(2*Messenger.MyEmail.length+2);
lpsz.WriteString(0, Messenger.MyEmail);
Interop.Call('user32', 'SendMessageW', Messenger.ContactListWndHandle, 0xC /* WM_SETTEXT */, 0, lpsz.DataPtr);
}
Thanks for your help, but for some reason the title text only changes when the account is signed into. If the contact list for that account is closed and then reopened, the text no longer changes.