What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Request] Display IP In PM

[Request] Display IP In PM
Author: Message:
Ickbal
New Member
*

Sex God

Posts: 7
31 / Male / –
Joined: Oct 2006
O.P. [Request] Display IP In PM
Say, if you turned it on, and typed in your PM:
[IP] is my I.P. Today
Because my I.P Changes every day, and its a lot of work to check and update pm every day because I run a server on GTA SA:MP so it needs to display my I.P so people can connect.
Thanks in advance
Tom

This post was edited on 10-04-2006 at 08:23 PM by Ickbal.
10-04-2006 08:22 PM
Profile E-Mail PM Web Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
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.
10-05-2006 04:41 AM
Profile E-Mail PM Find Quote Report
Ickbal
New Member
*

Sex God

Posts: 7
31 / Male / –
Joined: Oct 2006
O.P. RE: [Request] Display IP In PM
Thanks, didn't expect a reply so quickly
10-05-2006 07:31 PM
Profile E-Mail PM Web Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
RE: [Request] Display IP In PM
The replace part of that code needs editing as it is commenting out the function... Tried using an escape character, but I'm not to good with them ;)

EDIT: My very simple solution lol

code:
function OnEvent_Initialize(){
myVar = LoadXmlDoc('http://www.msgpluslive.net/software/getip.php')
myVar = myVar.replace("*", '');
myVar = myVar.replace("*", '');
Messenger.MyPersonalMessage = "My IP is: "+myVar
}

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;
}

EDIT2: Wheres my rep? :p

This post was edited on 10-05-2006 at 08:09 PM by Spunky.
<Eljay> "Problems encountered: shit blew up" :zippy:
10-05-2006 08:04 PM
Profile PM Find Quote Report
Ezra
Veteran Member
*****

Avatar
Forgiveness is between them and God

Posts: 1960
Reputation: 31
37 / Male / Flag
Joined: Mar 2003
RE: [Request] Display IP In PM
Or just get a DNS name :S

Install a little program that changes the dns ip every time it changes.

DynDNS
NO-IP

They work wonders :P
[Image: 1-0.png]
             
10-05-2006 08:26 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On