What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [request] email message subject to nick or psm

[request] email message subject to nick or psm
Author: Message:
AberNStein
Full Member
***


Posts: 132
Reputation: 2
Joined: Jul 2006
O.P. RE: [request] email message subject to nick or psm
ooh that looks promising
i'll try that
the only thing is gmail truncates the bodies of the emails in the feed.
i'll have to scrape the page itself.

edit: here's what i'm currently using.
when i want to change my nick i just type /script httptest

double edit: holy shit i'm an idiot.

code:
function OnEvent_Initialize(MessengerStart)
{
}

function OnEvent_Signin(eml){
httptest();
}

function rndm(length)
{
    var randNum= Math.floor(Math.random()*length);
    return randNum;
}

function httptest()
{
  var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  xmlhttp.Open("GET", "https://mail.google.com/mail/feed/atom/spam", false, "username", "password");
  xmlhttp.Send();
  var Text = xmlhttp.responseText;
  var entries = Text.split("<entry>");
  var k = rndm(entries.length);
  var title = entries[k].substr(7,entries[k].indexOf("</title>")-7);
  var summary = entries[k].substr(entries[k].indexOf("<summary>")+9,entries[k].indexOf("</summary>")-entries[k].indexOf("<summary>")-21);
      Messenger.MyName = title;
      Messenger.MyPersonalMessage = summary;
  }

function OnEvent_Uninitialize(MessengerExit)
{
}


This post was edited on 11-02-2006 at 04:00 AM by AberNStein.
[Image: gybouserbar6hc.gif]
09-22-2006 10:21 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[request] email message subject to nick or psm - by AberNStein on 09-22-2006 at 10:00 PM
RE: [request] email message subject to nick or psm - by Ezra on 09-22-2006 at 10:04 PM
RE: [request] email message subject to nick or psm - by AberNStein on 09-22-2006 at 10:06 PM
RE: [request] email message subject to nick or psm - by Ezra on 09-22-2006 at 10:13 PM
RE: [request] email message subject to nick or psm - by AberNStein on 09-22-2006 at 10:21 PM


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