Matty,
thanks for your help but
Your code is very complex ... I do not understand well
with the
js 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?
js code:
function Write(){
Shell.RegWrite(Reg1, Reg1);;
}
the correctly code is
js code:
function Write(){
Shell.RegWrite(Reg1Path, Reg1);;
}
my mistake
this works:
js 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
js code:
function Write(){
//Shell.RegWrite(varPath, ''+Origin+'asdsd');
}