What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Fix] Problem with OnEvent_ChatWndRecieveMessage's Origin

[Fix] Problem with OnEvent_ChatWndRecieveMessage's Origin
Author: Message:
markee
Veteran Member
*****

Avatar

Posts: 1621
Reputation: 50
35 / Male / Flag
Joined: Jan 2006
O.P. RE: [Fix] Problem with OnEvent_ChatWndRecieveMessage's Origin
Cookie, I changed your code because I still could not find that registry on my computer and so I would imagine other people would have the same problem as I am having if this was used.

code:
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind) {

    var sMyChatName = Messenger.MyName;
    var sStuffPlugPath = "HKLM\\SOFTWARE\\iAvatars.com\\StuffPlug\\";
    var oWSH = new ActiveXObject("WScript.Shell");
    try {
        try{
            var reg = oWSH.RegRead(sStuffPlugPath + "DisabledFor" + Messenger.MyUserId)
            throw "";
        }catch( e){
            if(reg !== undefined && reg !== 0){
                throw "";
            }
            if (oWSH.RegRead(sStuffPlugPath + Messenger.MyUserId + "\\ChatName") === 1) {
                var sMyChatName = "StuffPlug User";
                try {
                    var sMyChatName = oWSH.RegRead(sStuffPlugPath + Messenger.MyUserId + "\\szChatName");
                } catch( e){}
            }
        }
    } catch( e){}

    if (Origin !== sMyChatName) {
        // Do stuff here
    }
    // Do more here if you like
}

This post was edited on 01-22-2007 at 04:49 AM by markee.
[Image: markee.png]
01-22-2007 04:48 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Fix] Problem with OnEvent_ChatWndRecieveMessage's Origin - by markee on 01-22-2007 at 03:05 AM
RE: [Fix] Problem with OnEvent_ChatWndRecieveMessage's Origin - by deAd on 01-22-2007 at 03:26 AM
RE: [Fix] Problem with OnEvent_ChatWndRecieveMessage's Origin - by CookieRevised on 01-22-2007 at 03:36 AM
RE: RE: [Fix] Problem with OnEvent_ChatWndRecieveMessage's Origin - by deAd on 01-22-2007 at 03:42 AM
RE: [Fix] Problem with OnEvent_ChatWndRecieveMessage's Origin - by markee on 01-22-2007 at 03:45 AM
RE: RE: [Fix] Problem with OnEvent_ChatWndRecieveMessage's Origin - by deAd on 01-22-2007 at 04:11 AM
RE: [Fix] Problem with OnEvent_ChatWndRecieveMessage's Origin - by CookieRevised on 01-22-2007 at 04:14 AM
RE: RE: [Fix] Problem with OnEvent_ChatWndRecieveMessage's Origin - by deAd on 01-22-2007 at 04:17 AM
RE: [Fix] Problem with OnEvent_ChatWndRecieveMessage's Origin - by CookieRevised on 01-22-2007 at 04:22 AM
RE: [Fix] Problem with OnEvent_ChatWndRecieveMessage's Origin - by markee on 01-22-2007 at 04:48 AM
RE: [Fix] Problem with OnEvent_ChatWndRecieveMessage's Origin - by CookieRevised on 01-22-2007 at 05:00 AM
RE: [Fix] Problem with OnEvent_ChatWndRecieveMessage's Origin - by bigbob85 on 12-14-2007 at 10:49 PM
RE: [Fix] Problem with OnEvent_ChatWndRecieveMessage's Origin - by CookieRevised on 12-14-2007 at 11:52 PM
RE: [Fix] Problem with OnEvent_ChatWndRecieveMessage's Origin - by bigbob85 on 12-15-2007 at 12:16 AM
RE: [Fix] Problem with OnEvent_ChatWndRecieveMessage's Origin - by markee on 12-15-2007 at 05:16 AM
RE: [Fix] Problem with OnEvent_ChatWndRecieveMessage's Origin - by Deco on 12-16-2007 at 11:30 AM
RE: [Fix] Problem with OnEvent_ChatWndRecieveMessage's Origin - by CookieRevised on 12-16-2007 at 01:18 PM
RE: [Fix] Problem with OnEvent_ChatWndRecieveMessage's Origin - by markee on 12-16-2007 at 01:49 PM
RE: [Fix] Problem with OnEvent_ChatWndRecieveMessage's Origin - by bigbob85 on 12-16-2007 at 10:28 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