matty
Scripting Guru
Posts: 8336 Reputation: 109
39 / /
Joined: Dec 2002
Status: Away
|
RE: [Request] Display IP In PM
code: function OnEvent_SigninReady(sEmail){
Messenger.MyPersonalMessage = String(LoadXmlDoc('http://www.msgpluslive.net/software/getip.php')).replace(/*/gi, '')+' is my IP today';
}
function LoadXmlDoc(sUrl){
Interop.Call('wininet.dll', 'DeleteUrlCacheEntryW', sUrl);
var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
xmlhttp.open('GET', sUrl, false);
xmlhttp.send();
return xmlhttp.responseText;
}
This post was edited on 10-05-2006 at 06:44 PM by matty.
|
|