What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » problem with PlusWnd::RegisterMessageNotification

Pages: (2): « First [ 1 ] 2 » Last »
problem with PlusWnd::RegisterMessageNotification
Author: Message:
Jana.
New Member
*


Posts: 9
Joined: Jul 2008
O.P. problem with PlusWnd::RegisterMessageNotification
Hi my problem is that I want to check the mouseposition for a mouseover event so I searched the forum and found something but it didn't work for me. My script:
code:
function gwTemplateCalc(Template, Message)
{
    gw = new gwTemplate(Template);
    gw.load();
    GwSkillbar = MsgPlus.CreateWnd("gwSkillbar.xml", "GwSkillbar");
    GwSkillbar.RegisterMessageNotification(0x200);
   
...
}

function OnGwSkillbarEvent_MessageNotification(PlusWnd,wMessage,wParam,lParam)
{
    Debug.Trace("1");
}

But now the Event is never called..
hope anyone could help me

This post was edited on 07-17-2008 at 11:26 AM by Jana..
07-17-2008 11:22 AM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: problem with PlusWnd::RegisterMessageNotification
matty's reply to [Help] Detecting control mouse-over
07-17-2008 12:11 PM
Profile E-Mail PM Find Quote Report
Jana.
New Member
*


Posts: 9
Joined: Jul 2008
O.P. RE: problem with PlusWnd::RegisterMessageNotification
Îf you looked at my code this is exactly what I used.
07-17-2008 12:15 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: problem with PlusWnd::RegisterMessageNotification
quote:
Originally posted by Jana.
Îf you looked at my code this is exactly what I used.
No it really isn't. You need to use a switch in the MessageNotification function you cannot just define code to run because there could be multiple messages. So no you didn't.
07-17-2008 01:11 PM
Profile E-Mail PM Find Quote Report
Jana.
New Member
*


Posts: 9
Joined: Jul 2008
O.P. RE: problem with PlusWnd::RegisterMessageNotification
Even if I don't use the switch it should give me the debug message but even that never happens,  and if I use the switch the result is the same, no debug message.
Also it is the only MessageNotification I registered so I have only one message that could show up..
07-17-2008 01:53 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: problem with PlusWnd::RegisterMessageNotification
Does the window get created?

If you trace the events do you see that the event is being called? In the Debug Window, Debug > Trace Event Calls

This post was edited on 07-17-2008 at 02:03 PM by matty.
07-17-2008 02:01 PM
Profile E-Mail PM Find Quote Report
Jana.
New Member
*


Posts: 9
Joined: Jul 2008
O.P. RE: problem with PlusWnd::RegisterMessageNotification
Yes, everything in the first function works without problems. Only OnGwSkillbarEvent_MessageNotification seems to be never executed.
How to trace events?

This post was edited on 07-17-2008 at 02:04 PM by Jana..
07-17-2008 02:03 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: problem with PlusWnd::RegisterMessageNotification
quote:
Originally posted by matty
In the Debug Window, Debug > Trace Event Calls
07-17-2008 02:06 PM
Profile E-Mail PM Find Quote Report
Jana.
New Member
*


Posts: 9
Joined: Jul 2008
O.P. RE: problem with PlusWnd::RegisterMessageNotification
Uh I closed the debug window accidentally yesterday and it never reopened, I now have only the one under the scripteditor and I don't see any options there..
07-17-2008 02:11 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: problem with PlusWnd::RegisterMessageNotification
If you click the scripting icon on the contact list and click Show Script Debugging.

This post was edited on 07-17-2008 at 02:13 PM by matty.
07-17-2008 02:12 PM
Profile E-Mail PM Find Quote Report
Pages: (2): « First [ 1 ] 2 » Last »
« Next Oldest Return to Top Next Newest »


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