What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Writing to file/registry

Writing to file/registry
Author: Message:
craig2k5
Junior Member
**


Posts: 64
Joined: Feb 2006
O.P. Writing to file/registry
could some1 give me a hand please, ive created a script that shows a window when you type !config and allows you to enter 2 numbers
when you enter the 2 numbers i would like it to store them somewere (registry or a file w.e)
so that i can use them somewere else in the script.. any1 know how?

This post was edited on 07-03-2006 at 04:25 PM by craig2k5.
07-03-2006 04:20 PM
Profile E-Mail PM Find Quote Report
rob_botch
Full Member
***

Avatar

Posts: 180
Reputation: 4
33 / Male / Flag
Joined: Apr 2006
RE: Writing to file/registry
The Scripting Wiki page has a very good article about writing to the registry. I used it for my program and it worked perfectly.

It can be found here
07-03-2006 04:52 PM
Profile E-Mail PM Web Find Quote Report
alexp2_ad
Scripting Contest Winner
****

Avatar
Who love the chocolate?

Posts: 691
Reputation: 26
36 / Male / –
Joined: May 2004
Status: Away
RE: Writing to file/registry
http://mpwiki.net/The_Registry
http://mpwiki.net/Text_Files

And you can use GetControlText to get the text from the boxes in the window.
07-03-2006 05:22 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Writing to file/registry
Registry Module.

Current I am working on version 1.1 which has EnumRegistryKeys and EnumRegistryValues.
07-03-2006 05:26 PM
Profile E-Mail PM Find Quote Report
craig2k5
Junior Member
**


Posts: 64
Joined: Feb 2006
O.P. RE: RE: Writing to file/registry
quote:
Originally posted by alexp2_ad
http://mpwiki.net/The_Registry
http://mpwiki.net/Text_Files

And you can use GetControlText to get the text from the boxes in the window.


i wanted to use this GetControlText but i cant figure out how to save the data in the text boxes in the window:^) lol
07-03-2006 05:52 PM
Profile E-Mail PM Find Quote Report
dramado
New Member
*


Posts: 11
Joined: Jun 2006
RE: Writing to file/registry
use a textfile and eval();

in the textfile:
var1 = 38273;
var2 = 382773;

read the textfile into var a and do eval(a) it will evaluate the text and assign the saved values

function save()
{
writetofile('var1 = ' + var1 + ';var2 = ' + var2 + ';');
}

function load()
{
  eval(readallfile()); // will assign corresponding var1, var2 values
}

this way you dont have to create/delete any registry values and the files will be removed when your script is removed by the user

This post was edited on 07-03-2006 at 06:06 PM by dramado.
07-03-2006 06:03 PM
Profile E-Mail PM Find Quote Report
craig2k5
Junior Member
**


Posts: 64
Joined: Feb 2006
O.P. RE: Writing to file/registry
im sorry im new to programming with this lol :$ could you explain that a bit more please
07-03-2006 06:10 PM
Profile E-Mail 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