Well, I can just say this came out of the dance of my fingers
Ok, I'll say a little more...
It's a class I built so that you easily create, read and delete registry keys.
-------------------------------------------------------------------------------------------
How to use:
First you need to globally declare: 'var Regs = new Regs(SaveLocation)' -> where SaveLocation is a boolean, if it's 0,
it will save to MsgPlus.ScriptRegPath + Messenger.UserId, if it's 1 it will save to MsgPlus.ScriptRegPath + Messenger.MyEmail.
Then you can use Regs.methods():
Regs.Del(key) - deletes the 'key' registry;
Regs.Read(key) - reads the 'key' registry;
Regs.WriteStr(key, value, overwrite) - writes a string with 'key' name, 'value' value, overwrite is a bool, if omitted, overwrites;
Regs.WriteBool(key, value, overwrite) - writes a bool with 'key' name, 'value' - 0/1, overwrite is a bool, if omitted, overwrites;
-------------------------------------------------------------------------------------------
The file is on the attachment