RE: Saving Settings
Suggestion
[code]
function RegRead(Key) {
if(Messenger.MyStatus> 0) { // See if someone is signed in
try { // try reading from Key
return new ActiveXObject("WScript.Shell").RegRead(Key);
}
catch(e) { // error: it's very likely the key does not exist;
return "__none"; // common string telling your script the key doesn't exist
}
}
return "__notsignedin"; // tells the script that no one is signed in
}
This post was edited on 11-01-2008 at 02:27 PM by SmokingCookie.
|