What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Need help with ChatWnd::SendMessage

Need help with ChatWnd::SendMessage
Author: Message:
vikke
Senior Member
****

Avatar

Posts: 900
Reputation: 28
31 / Male / Flag
Joined: May 2006
RE: RE: Need help with ChatWnd::SendMessage
quote:
Originally posted by Jacen
code:
function OnEvent_MenuClicked(sMenuId){
*snip*
    if(sMenuId=="mnuItem7"){
*snip*
    ChatWnd.SendMessage("Test");
    }
}



You will have to add all parameters for OnEvent_MenuClicked, not just sMenuId. There is one called OriginWnd, which is the ChatWnd object.
Code:
code:
function OnEvent_MenuClicked(sMenuId, Location, OriginWnd){
*snip*
    if(sMenuId=="mnuItem7"){
*snip*
        if(Location == 2){ // we are in chat window, not in contact list
    OriginWnd.SendMessage("Test");
        }

    }
}

Changes are made in bold.

This post was edited on 05-01-2007 at 04:51 PM by vikke.
4 8 15 16 23 42
05-01-2007 04:48 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Need help with ChatWnd::SendMessage - by Jacen on 05-01-2007 at 04:23 PM
RE: Need help with ChatWnd::SendMessage - by Felu on 05-01-2007 at 04:27 PM
RE: Need help with ChatWnd::SendMessage - by Jacen on 05-01-2007 at 04:29 PM
RE: RE: Need help with ChatWnd::SendMessage - by vikke on 05-01-2007 at 04:48 PM
RE: Need help with ChatWnd::SendMessage - by Felu on 05-01-2007 at 04:33 PM
RE: Need help with ChatWnd::SendMessage - by Huhu_Manix on 05-01-2007 at 04:35 PM
RE: Need help with ChatWnd::SendMessage - by Paril on 05-01-2007 at 04:36 PM
RE: Need help with ChatWnd::SendMessage - by Jacen on 05-01-2007 at 04:44 PM
RE: Need help with ChatWnd::SendMessage - by Paril on 05-01-2007 at 04:49 PM
RE: RE: Need help with ChatWnd::SendMessage - by vikke on 05-01-2007 at 04:52 PM
RE: Need help with ChatWnd::SendMessage - by Jacen on 05-01-2007 at 04:58 PM
RE: Need help with ChatWnd::SendMessage - by Paril on 05-01-2007 at 06:06 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