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

Menu problem
Author: Message:
djdannyp
Elite Member
*****

Avatar
Danny <3 Sarah

Posts: 3546
Reputation: 31
38 / Male / Flag
Joined: Mar 2006
O.P. Menu problem
code:
function OnGetScriptMenu(Location)
{
    var myMenu = "<ScriptMenu>";
    myMenu += "<MenuEntry Id=\"mnuNew\">New</MenuEntry>";
    myMenu += "<Separator/>";
    myMenu += "<MenuEntry Id=\"mnuAbout\">About...</MenuEntry>";
    myMenu += "</ScriptMenu>";
    return myMenu;
}
   
function OnEvent_MenuClicked(MenuItemId, Location, OriginWind)
{
    if (MenuItemId == "mnuNew") {
        WndNew = MsgPlus.CreateWnd("New.xml", "mnuNew");           
    } else if (MenuItemId == "mnuAbout") {
        WndAbout = MsgPlus.CreateWnd("About.xml", "mnuAbout");
}

that's some code I've got to make a menu (for a script that I'm probably going to need more help on once I get my head around exactly what i'm doing!)

However I can't now get the windows to show.

The menus are created properly, there's no errors in the debug window, the xml files load successfully in the tester (and I've tried substituting one for a menu window from another script which works)

I'm at a complete loss :S
[Image: 1ftt0hpk-signature.png]
AutoStatus Script || Facebook Status Script
5377 days, 16 minutes, 46 seconds ago
01-21-2009 10:14 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Menu problem - by djdannyp on 01-21-2009 at 10:14 AM
RE: Menu problem - by mynetx on 01-21-2009 at 10:28 AM
RE: Menu problem - by Spunky on 01-21-2009 at 10:30 AM
RE: Menu problem - by djdannyp on 01-21-2009 at 11:08 AM
RE: Menu problem - by Spunky on 01-21-2009 at 11:16 AM
RE: Menu problem - by mynetx on 01-21-2009 at 11:18 AM
RE: Menu problem - by djdannyp on 01-21-2009 at 12:16 PM
RE: Menu problem - by Matti on 01-21-2009 at 12:25 PM
RE: Menu problem - by djdannyp on 01-21-2009 at 02:26 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