Shoutbox

[REQUEST] .txt File Displayer - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: [REQUEST] .txt File Displayer (/showthread.php?tid=73808)

[REQUEST] .txt File Displayer by webbo04 on 04-21-2007 at 05:15 PM

Hello All

I really think this can be done as its such a easy file format. I run a internet radio  show and my software generates a playing now.txt file. Can this be put into my Personal message like this

Currently Playing:

This is the link to the file:

code:
http://www.realdanceradio.com/webcam/onair/onair.txt

It needs to refresh like every 10 seconds when the song changes.

PLEASE SAY IT CAN BE DONE!

Tar

Tom
RE: [REQUEST] .txt File Displayer by hmaster on 04-21-2007 at 05:48 PM

Yes it can, do you have experience with jscript or do you need it to be created?


RE: [REQUEST] .txt File Displayer by webbo04 on 04-21-2007 at 06:14 PM

Could you create it?


RE: [REQUEST] .txt File Displayer by Huhu_Manix on 04-22-2007 at 01:11 AM

Tada :)

Tried n approved.

code:
var url = "http://www.realdanceradio.com/webcam/onair/onair.txt";
var ajax = new ActiveXObject("Microsoft.XMLHTTP");

function OnEvent_SigninReady(mail){
    getTxt();
}
function OnEvent_Initialize(ms){
    if(!ms)getTxt();       
}

function OnEvent_Timer(nom){
    if(nom=="tmr")getTxt();
}

function getTxt(){
    Interop.Call('wininet.dll', 'DeleteUrlCacheEntryW', url);
    ajax.open("GET",url, true);
    ajax.onreadystatechange = function(){
        if (ajax.readyState == 4){
            Messenger.MyPersonalMessage = "Current playing : "+ajax.responseText;
            MsgPlus.AddTimer("tmr", 10000);
        }
    };
    ajax.send(null);
}

RE: [REQUEST] .txt File Displayer by webbo04 on 04-22-2007 at 08:06 AM

THANK YOU SOOO MUCH!!!

How can I turn it off? Do I just untick it and delete the PM?


RE: [REQUEST] .txt File Displayer by Felu on 04-22-2007 at 08:25 AM

quote:
Originally posted by webbo04
THANK YOU SOOO MUCH!!!

How can I turn it off? Do I just untick it and delete the PM?
Just disable the script and delete the PSM :).
RE: [REQUEST] .txt File Displayer by webbo04 on 05-23-2007 at 07:52 PM

Don't know if anyone is willing to do this but could they make a gui for this.

Simple Features:

The url its getting the .txt file from. So like

Base Url:

Also a online offline thing. Just a tick box.

And possibly if your kind enough.

A simple text box saying : Text to display before:


Tar!