[Help] My Problem... - Printable Version -Shoutbox (https://shoutbox.menthix.net) +-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58) +--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4) +---- Forum: Scripting (/forumdisplay.php?fid=39) +----- Thread: [Help] My Problem... (/showthread.php?tid=62011) [Help] My Problem... by b0rna on 06-29-2006 at 12:02 PM
Hi, RE: [Help] My Problem... by upsfeup on 06-29-2006 at 12:42 PM
You have to define which window to use. Of what contact you want to send the message to! RE: [Help] My Problem... by b0rna on 06-29-2006 at 12:59 PM ok. but that doesnt really help me much. RE: [Help] My Problem... by upsfeup on 06-29-2006 at 01:12 PM
Ok! How do you choose the window to send the information? probably another function such as OnEvent_WndMessageReceived. In this function you have a variable called ChatWnd so you write a global variable. code:Then on your timer function you can use code: RE: [Help] My Problem... by matty on 06-29-2006 at 01:14 PM
Ok the problem that your having is that ChatWnd isn't defined as anything. If you look at other examples or even a function (example : ) code: You see how ChatWnd is defined as an object. This is there because Plus! passes the chat window object to the function. This cannot be used the way you are doing it. If you make a global variable code: And pass the ChatWnd from the OnEvent_ChatWndCreated to our global ChatWnd then you can use it. However this will overwrite the previous windows. So if you were sending these messages to Person X and you open a conversation with Persion Y you will be sending them to Person Y and not Person X. Hope that explains why your getting the error and how you can possibly fix it. |