quote:
Originally posted by BstrdSmkr
quote:
Originally posted by fergofrog
Neither of those 2 worked. I got the same error. Here is my code now (just the menu):
code:
function OnGetScriptMenu (Location)
{
var ScriptMenu = "<ScriptMenu>";
ScriptMenu += "<MenuEntry Id=\"MnuAbout\">About...</MenuEntry>";
ScriptMenu += "</ScriptMenu>";
return ScriptMenu;
}
function OnEvent_MenuClicked (MenuItemId, Location, OriginWnd)
{
if(MenuItemId == "MnuAbout"){
MsgPlus.CreateWnd('Window.xml', 'About');
}
}
change the second set of double quotes to single quotes on line 3:
code:
ScriptMenu += "<MenuEntry Id=\"MnuAbout\">About...</MenuEntry>";
should be:
code:
ScriptMenu += "<MenuEntry Id=\'MnuAbout\'>About...</MenuEntry>";
see if that works
No that didn't work, the problem is in the OnEvent_MenuClicked i think.