What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Saving variables ActiveXObject & shell

Saving variables ActiveXObject & shell
Author: Message:
PedroGabriel
Junior Member
**


Posts: 22
– / – / Flag
Joined: Jun 2010
O.P. Huh?  Saving variables ActiveXObject & shell
I'm making a script
but the var's don't save, If I relog and return my vars desapear...

how to make vars don't reset?


I'm trying...

my code:

code:
var score=0
function scorewrite(score){
    var Shell = new ActiveXObject("WScript.Shell");
    var ValRegPath = MsgPlus.ScriptRegPath + score;
    Shell.RegWrite(ValRegPath, 0);
}
function scoreread(Score){
    var score = Shell.RegRead(ValRegPath);
    var score = Shell.RegRead(MsgPlus.ScriptRegPath + score);
}


function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, rMessage, MsgKind){
    if (rMessage=='+1'){score+=1; scorewrite(score);}
}
function OnEvent_Timer(Timer){
    if (Timer=='rato'){
        Messenger.MyPersonalMessage=score
        MsgPlus.AddTimer('rato',1000)
    }
}

function OnEvent_Initialize(MessengerStart){
MsgPlus.AddTimer('rato',1000)
score = scoreread(score);
}
function OnEvent_SignIn(){score=scoreread(score);}

function OnEvent_Uninitialize(MessengerExit){scorewrite(score);}  

with my code

when you say +1
add +1 to score and show on the psm

if I leave from the Messenger and return

when I say +1 nothing happend...

I really want save var's to close msn and don't lose the values


Sorry my bad inglish...

Thanks!
06-19-2010 05:48 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Saving variables ActiveXObject & shell - by PedroGabriel on 06-19-2010 at 05:48 PM
RE: Saving variables ActiveXObject & shell - by Matti on 06-19-2010 at 06:30 PM
RE: RE: Saving variables ActiveXObject & shell - by Matti on 06-20-2010 at 07:51 AM
RE: Saving variables ActiveXObject & shell - by PedroGabriel on 06-19-2010 at 08:30 PM
RE: Saving variables ActiveXObject & shell - by PedroGabriel on 06-20-2010 at 07:56 AM
RE: Saving variables ActiveXObject & shell - by whiz on 06-20-2010 at 10:00 AM
RE: Saving variables ActiveXObject & shell - by Matti on 06-20-2010 at 02:07 PM


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