quote:
Originally posted by the andyman
quote:
Originally posted by fatfreechicken
Still getting the registry error though when I use an account who's settings are not saved.
Hmm, thanks for telling me - I'll have (another) look now.
I'm pretty sure it should be working, and seems to have worked for other's that have tried it. Here's the code I'm currently using to check for the registry value:
code:
var Shell = new ActiveXObject("WScript.Shell");
function OnEvent_Initialize(MessengerStart){
try{
var echeck = Messenger.MyEmail;
}catch(e){
var echeck = "null";
}
if(echeck=="null"){
function OnEvent_Signin(Email){
try{
Shell.RegRead(MsgPlus.ScriptRegPath + Messenger.MyEmail + "\\enabled");
}catch(e){
Shell.RegWrite(MsgPlus.ScriptRegPath + Messenger.MyEmail + "\\enabled","true");
}
}
}else{
try{
Shell.RegRead(MsgPlus.ScriptRegPath + Messenger.MyEmail + "\\enabled");
}catch(e){
Shell.RegWrite(MsgPlus.ScriptRegPath + Messenger.MyEmail + "\\enabled","true");
}
}
}