What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Storing of data...

Storing of data...
Author: Message:
Alxandr
New Member
*


Posts: 7
33 / Male / Flag
Joined: Jun 2007
O.P. Huh?  Storing of data...
If i want to store some data for later, what do I do? For example if I wan't to store a List of users, how do I do that? So that when the user logs on again (on the same computer ofcause, js is client, not serverscript) the computer already has filled out the list for the user...
06-21-2007 07:54 PM
Profile E-Mail PM Web Find Quote Report
cooldude_i06
Full Member
***

Avatar
I'm so cool I worry myself.

Posts: 272
Reputation: 9
– / Male / –
Joined: Sep 2003
RE: Storing of data...
You can either store your data in an XML file, or in the registry. XML file is the "standard" for most apps I guess, but I suggest the registry because if a user updates the script, all previous settings won't be lost, where as with XML if the file is in the Script directory, they will be.

Here are some ways to access the registry.
http://www.mpscripts.net/code.php?cat=90
[Image: clb2.jpg]
06-21-2007 08:24 PM
Profile E-Mail PM Web Find Quote Report
Alxandr
New Member
*


Posts: 7
33 / Male / Flag
Joined: Jun 2007
O.P. RE: Storing of data...
But how do you do that in JS? (I preffer XML)...
06-21-2007 08:25 PM
Profile E-Mail PM Web Find Quote Report
deAd
Scripting Contest Winner
*****

Avatar

Posts: 1060
Reputation: 28
– / Male / Flag
Joined: Jan 2006
RE: RE: Storing of data...
You can use the Microsoft.XMLDOM ActiveX object to access XML.


quote:
Originally posted by cooldude_i06if a user updates the script, all previous settings won't be lost, where as with XML if the file is in the Script directory, they will be.
That depends on how the script is coded. For example, the Stickynotes script stores the notes in an XML file, but when you update the script the notes are not all deleted.

This post was edited on 06-21-2007 at 10:13 PM by deAd.
06-21-2007 10:11 PM
Profile PM Find Quote Report
-dt-
Scripting Contest Winner
*****

Avatar
;o

Posts: 1819
Reputation: 74
35 / Male / Flag
Joined: Mar 2004
RE: Storing of data...
quote:
Originally posted by cooldude_i06
You can either store your data in an XML file, or in the registry. XML file is the "standard" for most apps I guess, but I suggest the registry because if a user updates the script, all previous settings won't be lost, where as with XML if the file is in the Script directory, they will be.

Here are some ways to access the registry.
http://www.mpscripts.net/code.php?cat=90
files in the script directory are only removed when the script is removed, so your settings xml will be safe :)
[Image: dt2.0v2.png]      Happy Birthday, WDZ
06-21-2007 10:52 PM
Profile PM Web Find Quote Report
cooldude_i06
Full Member
***

Avatar
I'm so cool I worry myself.

Posts: 272
Reputation: 9
– / Male / –
Joined: Sep 2003
RE: Storing of data...
quote:
Originally posted by -dt-
quote:
Originally posted by cooldude_i06
You can either store your data in an XML file, or in the registry. XML file is the "standard" for most apps I guess, but I suggest the registry because if a user updates the script, all previous settings won't be lost, where as with XML if the file is in the Script directory, they will be.

Here are some ways to access the registry.
http://www.mpscripts.net/code.php?cat=90
files in the script directory are only removed when the script is removed, so your settings xml will be safe :)

But doesn't Plus remove the script first if you install a newer version. In that case the stored XML files will be removed.
[Image: clb2.jpg]
06-22-2007 01:23 AM
Profile E-Mail PM Web Find Quote Report
deAd
Scripting Contest Winner
*****

Avatar

Posts: 1060
Reputation: 28
– / Male / Flag
Joined: Jan 2006
RE: RE: Storing of data...
quote:
Originally posted by cooldude_i06But doesn't Plus remove the script first if you install a newer version. In that case the stored XML files will be removed.

no, it doesn't..only when you uninstall the script.
06-22-2007 01:40 AM
Profile PM 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