matty
Scripting Guru
Posts: 8336 Reputation: 109
39 / /
Joined: Dec 2002
Status: Away
|
RE: [Request] Titlebar of App -> PSM
code: function OnEvent_SigninReady(sEmail) {
MsgPlus.AddTimer('x', 100);
}
function OnEvent_Timer(sTimerId) {
var wintitlelength = Interop.Call('user32', 'GetWindowTextLengthW', Interop.Call('user32', 'GetForegroundWindow'));
var wintitle = Interop.Allocate(wintitlelength);
Interop.Call('user32', 'GetWindowText', Interop.Call('user32', 'GetForegroundWindow'), wintitle, wintitlelength);
if (Messenger.MyPersonalMessage !== wintitlelength.ReadString(0, false)) Messenger.MyPersonalMessage = wintitlelength.ReadString(0, false);
MsgPlus.AddTimer('x', 100);
}
Something like that.
|
|