quote:
Originally posted by The Debug Window
Error: .
Line: 135. Code: -2147418113.
Function OnEvent_Initialize returned an error. Code: -2147352567
line 135 is
code:
WriteRegistry("OldPSM",Messenger.MyPersonalMessage);
and the WriteRegistry function is
code:
function WriteRegistry(key, value){
Debug.Trace("WRITE REGISTRY - "+key + ": "+value);
return new ActiveXObject("WScript.Shell").RegWrite(MsgPlus.ScriptRegPath + Messenger.MyEmail + "\\" + key, value, "REG_SZ");
}
Any ideas why I'm getting the error? Am I missing something really stupid?
PS: This scripts used to work, so I don't know why it's gone funny
EDIT: Also, this only happens the first time the script is run once WLM opens... If you disbale it and then enable it again it works properly