try wrapping your code in the [code] tags and add some spacing to it
code:
function OnGetScriptMenu(nLocation)
{
return "<ScriptMenu><MenuEntry Id=\"MnuAbout\">About</MenuEntry></ScriptMenu>";
}
function OnEvent_MenuClicked(sMenuId,nLocation,iOriginWnd){
if(sMenuId == "MnuAbout"){
MsgPlus.CreateWnd("about.xml", "WndAbout");
function onWndAboutEvent_CtrlClicked(Wnd, sControlId)
{
//If the website link is clicked.
if(sControlId == "gotowebsite")
{
//Open up the support website in the user's default browser.
new ActiveXObject("wscript.shell").run("http://www.pixel-gfx.com");
}
}
}
}
remove OnEvent_MenuClicked from within OnGetScriptMenu otherwise it wont work.
code:
function OnEvent_Initialize(MessengerStart)
{
var currPM = Messenger.MyPersonalMessage;
Debug.DebuggingWindowVisible = true;
}
whats the use of that variable? its declared into that scope and will be destroyed once that function finishes if you're trying to make it a global variable use
code:
var currPM
function OnEvent_Initialize(MessengerStart)
{
currPM = Messenger.MyPersonalMessage;
Debug.DebuggingWindowVisible = true;
}
if you want it global use the above code