What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Find and update

Find and update
Author: Message:
SnuZZer
Full Member
***

Avatar

Posts: 114
32 / Male / Flag
Joined: Jun 2006
O.P. Find and update
Hi.
I'm from Denmark and my english isn't good, but I'll try.
I'm trying to make a log of witch music i hear.
When "What I'm listning to" change it saves the artist, the title and the album name in a XML-document.

A post in the XML-document lookes like this:
0//splitter\\Nik & Jay//splitter\\Rock 'n' roll//splitter\\Nik & Jay

Blue = Hits
Red = Artist
Green = Title
Orange = Album name
Black = "//splitter\\" is there so I can split it when I put it in the LstViewControl.

The meaning is that, when the "What I'm listning to" change and the script saves the information, it shell check if the artist and the title match a post in the XML-document, if it does it shell plus one to hits, if it doesn't it shell add the information.
But I can't find out to do above-mentioned.

This is my save-function:
code:
function Gem(Kunstner, Nummer, Album)
{
    xml.load(Sti);

    var Tilfoej = xml.createElement("Nummer");

    Tilfoej.appendChild(xml.createTextNode("0//splitter\\\\" + Kunstner + "//splitter\\\\" + Nummer + "//splitter\\\\" + Album));
    xml.getElementsByTagName("Musik")[0].appendChild(Tilfoej);
   
    xml.save(Sti);
}

Thanks in advance.

This post was edited on 11-29-2006 at 07:57 PM by SnuZZer.
11-29-2006 07:50 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