quote:
Originally posted by CookieRevised
quote:
Originally posted by UTI
What's wrong with this code?... it's the same as Ezra's code exact, except for receiving messages... It'll count the recieving messages but then when I send messages, it is messed up
Ezra's code didn't work either because it contains wrong code:
code:
function ReadRegistry(key)
{
var Shell = new ActiveXObject("WScript.Shell");
return value = Shell.RegRead(MsgPlus.ScriptRegPath + key);
}
Maybe it isn't the best code ever made
, but it still works...
It simply first puts the outcome of the registry read in that value and then returns the value, this way you can also add more things that use that variable in that function.
BTW: If you want there is another usefull function I use, this one to delete keys from the registry
code:
function RemoveRegistry(key)
{
var Shell = new ActiveXObject("WScript.Shell");
Shell.RegDelete(MsgPlus.ScriptRegPath + key);
}