What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Help with script] Getting text from websites

[Help with script] Getting text from websites
Author: Message:
skyserpent
Junior Member
**

Bacon

Posts: 96
32 / Male / –
Joined: Aug 2006
O.P. [Help with script] Getting text from websites
I have created a PHP script to get the total ammount of downloads of a certain script from the msgplus script database. I was wondering how I could get that text and then show it in my Display Name.

http://www.adenbeckitt.info/dloads/index.php?script=142-CrazyText (total downloads of CrazyText)

go to http://www.adenbeckitt.info/dloads/index.php to find out how to use it.

This post was edited on 03-07-2007 at 06:33 PM by skyserpent.
03-07-2007 06:09 PM
Profile E-Mail PM Web Find Quote Report
pollolibredegrasa
Full Member
***

Avatar
formerly fatfreechicken

Posts: 483
Reputation: 34
35 / Male / Flag
Joined: May 2005
RE: [Help with script] Getting text from websites
This post may be of some help :)
03-07-2007 06:19 PM
Profile PM Find Quote Report
skyserpent
Junior Member
**

Bacon

Posts: 96
32 / Male / –
Joined: Aug 2006
O.P. RE: [Help with script] Getting text from websites
thanks man.

I have:
code:
var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
xmlhttp.open("GET", "http://www.adenbeckitt.info/dloads/index.php?script=142-CrazyText", true);

xmlhttp.onreadystatechange=function() {
   if (xmlhttp.readyState==4) {
Messenger.MyPersonalMessage = Messenger.MyPersonalMessage+" | CrazyText downloads: "+xmlhttp.responseText;
   }
         }
xmlhttp.send('');

but i need it to check every so often and add it on the end. any ideas? also if you just add it on the end then it would come out as:

eg.
Personal Message | CrazyText downloads: 29900 | CrazyText downloads: 29923
03-07-2007 06:45 PM
Profile E-Mail PM Web Find Quote Report
foaly
Senior Member
****

Avatar

Posts: 718
Reputation: 20
38 / Male / Flag
Joined: Jul 2006
RE: [Help with script] Getting text from websites
you could do something like:

code:
var n = psm.indexOf("CrazyText downloads:");
psm = psm.substring(0,n) +"here the next downloads"

03-07-2007 06:53 PM
Profile E-Mail PM Find Quote Report
skyserpent
Junior Member
**

Bacon

Posts: 96
32 / Male / –
Joined: Aug 2006
O.P. RE: [Help with script] Getting text from websites
thanks but to be honest i have decided that i cannot be bothered really. lol. If anyone wants to carry it on they can. Thanks to everyone that helped.
03-07-2007 06:57 PM
Profile E-Mail PM Web Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: [Help with script] Getting text from websites
PS: if you want this into a script, you don't need the php script thuogh. What you did in the php script can be done directly within a Plus! script too ;)
.-= A 'frrrrrrrituurrr' for Wacky =-.
03-07-2007 07:25 PM
Profile PM Find Quote Report
skyserpent
Junior Member
**

Bacon

Posts: 96
32 / Male / –
Joined: Aug 2006
O.P. RE: [Help with script] Getting text from websites
yeah, but i didn't know how :P
03-07-2007 07:27 PM
Profile E-Mail 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