What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » writing text in registry?

writing text in registry?
Author: Message:
PedroGabriel
Junior Member
**


Posts: 22
– / – / Flag
Joined: Jun 2010
O.P. RE: RE: writing text in registry?
Matty,
thanks for your help but
Your code is very complex ... I do not understand well

with the
Javascript code:
Registry_SetKeyValue(HKCU, MsgPlus.ScriptRegPath.substr(5), 'key', 'this is a test', REG_SZ);
Debug.Trace(Registry_GetKeyValue(HKCU, MsgPlus.ScriptRegPath.substr(5), 'key');

return False
>.>

I only want write words in Reg
eg: this is a test

you code is really complex .-.


whiz,
thanks for your help too but
are you talking about here right?
Javascript code:
function Write(){
    Shell.RegWrite(Reg1, Reg1);;
}


the correctly code is
Javascript code:
function Write(){
    Shell.RegWrite(Reg1Path, Reg1);;
}


my mistake


this works:
Javascript code:
var
 
  varPath = MsgPlus.ScriptRegPath + '\\new1';
  Shell = new ActiveXObject('WScript.Shell');
 
function Read(){
    sa = Shell.RegRead(Reg1Path);
return sa;
}
 
function Write(){
    //Shell.RegWrite(varPath, ''+Origin+'asdsd');
}
 
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, rMessage, MsgKind){
    if (rMessage=='aaa'){
        Shell.RegWrite(varPath, ''+Origin+'asdsd');
    }
}


why i Can't use here
Javascript code:
function Write(){
    //Shell.RegWrite(varPath, ''+Origin+'asdsd');
}


This post was edited on 08-13-2010 at 11:05 PM by PedroGabriel.
08-13-2010 09:59 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
writing text in registry? - by PedroGabriel on 08-13-2010 at 09:16 PM
RE: writing text in registry? - by whiz on 08-13-2010 at 09:40 PM
RE: writing text in registry? - by matty on 08-13-2010 at 09:41 PM
RE: RE: writing text in registry? - by PedroGabriel on 08-13-2010 at 09:59 PM
RE: writing text in registry? - by matty on 08-14-2010 at 01:33 AM
RE: writing text in registry? - by PedroGabriel on 08-14-2010 at 01:43 AM
RE: writing text in registry? - by matty on 08-14-2010 at 02:09 AM
RE: writing text in registry? - by PedroGabriel on 08-14-2010 at 02:17 AM
RE: writing text in registry? - by Matti on 08-14-2010 at 08:34 AM
RE: writing text in registry? - by PedroGabriel on 08-14-2010 at 09:47 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