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

Scriptmenu
Author: Message:
Jimbo
Veteran Member
*****

Avatar

Posts: 1650
Reputation: 18
32 / Male / Flag
Joined: Jul 2006
RE: Scriptmenu
Example taken from activity launcher created by alexp2_ad

code:
function OnGetScriptMenu(nLocation){
    var ScriptMenu = "<ScriptMenu>\n";
    var submenus = new Array();
    for(i=0;i<Activities.length;i++){
        var found = false;
        for(j=0;j<submenus.length;j++){
            if(submenus[j][0] == Activities[i][3]){ submenus[j][submenus[j].length] = Activities[i]; found = true; }
        }
        if(!found){
            var temp = submenus.length;
            submenus[temp] = new Array();
            submenus[temp][0] = Activities[i][3];
            submenus[temp][1] = Activities[i];
        }
    }
    for(i=0;i<submenus.length;i++){
        ScriptMenu+="\t<SubMenu Label=\""+submenus[i][0]+"\">";
        for(j=1;j<submenus[i].length;j++){
            if(submenus[i][j][2]){
                ScriptMenu+="\t\t<MenuEntry Id=\"Activity-"+submenus[i][j][1]+"\">"+MakeXmlFriendly(submenus[i][j][0])+"</MenuEntry>\n";
            }
        }
        ScriptMenu+="\t</SubMenu>";
    }
    ScriptMenu+="\t<Separator/>\n";
    ScriptMenu+="\t<MenuEntry Id=\"Configure\">Configure</MenuEntry>\n";
    ScriptMenu+="\t<MenuEntry Id=\"Default\">Restore Default Activity List</MenuEntry>\n";
    ScriptMenu+="\t<MenuEntry Id=\"About\">About This Script</MenuEntry>\n";
    ScriptMenu+= "</ScriptMenu>";
    return ScriptMenu;
}

01-30-2007 07:57 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Scriptmenu - by Jumpfreakske on 01-30-2007 at 07:48 PM
RE: Scriptmenu - by Jimbo on 01-30-2007 at 07:57 PM
RE: Scriptmenu - by Jesus on 01-30-2007 at 07:59 PM
RE: Scriptmenu - by Jumpfreakske on 01-30-2007 at 08:07 PM
RE: Scriptmenu - by Jumpfreakske on 01-30-2007 at 08:11 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