What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Counter by the messages

Counter by the messages
Author: Message:
Ezra
Veteran Member
*****

Avatar
Forgiveness is between them and God

Posts: 1960
Reputation: 31
37 / Male / Flag
Joined: Mar 2003
RE: Counter by the messages
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:P, 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);
}

This post was edited on 06-27-2006 at 06:39 PM by Ezra.
[Image: 1-0.png]
             
06-27-2006 06:35 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Counter by the messages - by ThunderStorm on 06-26-2006 at 09:46 AM
RE: Counter by the messages - by Ezra on 06-26-2006 at 10:26 AM
RE: Counter by the messages - by ThunderStorm on 06-26-2006 at 11:12 AM
RE: Counter by the messages - by Ezra on 06-26-2006 at 11:16 AM
RE: Counter by the messages - by ThunderStorm on 06-26-2006 at 11:46 AM
RE: Counter by the messages - by Ezra on 06-26-2006 at 11:49 AM
RE: Counter by the messages - by ThunderStorm on 06-26-2006 at 12:05 PM
RE: Counter by the messages - by mathieumg on 06-26-2006 at 12:13 PM
RE: Counter by the messages - by Ezra on 06-26-2006 at 12:32 PM
RE: Counter by the messages - by qgroessl on 06-26-2006 at 01:41 PM
RE: RE: Counter by the messages - by mathieumg on 06-26-2006 at 01:51 PM
RE: Counter by the messages - by qgroessl on 06-26-2006 at 01:53 PM
RE: Counter by the messages - by Ezra on 06-26-2006 at 02:11 PM
RE: Counter by the messages - by qgroessl on 06-26-2006 at 04:35 PM
RE: RE: Counter by the messages - by CookieRevised on 06-27-2006 at 01:57 PM
RE: Counter by the messages - by Voldemort on 06-26-2006 at 04:48 PM
RE: Counter by the messages - by qgroessl on 06-26-2006 at 05:47 PM
RE: Counter by the messages - by Thargor on 06-26-2006 at 06:09 PM
RE: Counter by the messages - by qgroessl on 06-26-2006 at 07:52 PM
RE: Counter by the messages - by Thargor on 06-27-2006 at 10:13 AM
RE: Counter by the messages - by The_Joker on 06-27-2006 at 01:02 PM
RE: Counter by the messages - by qgroessl on 06-27-2006 at 03:30 PM
RE: Counter by the messages - by Thargor on 06-27-2006 at 06:26 PM
RE: Counter by the messages - by Ezra on 06-27-2006 at 06:35 PM
RE: Counter by the messages - by John Anderton on 06-27-2006 at 06:37 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On