What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » How Can I Open Windows Explorer ?

How Can I Open Windows Explorer ?
Author: Message:
Lén
Junior Member
**

Avatar

Posts: 16
34 / Male / Flag
Joined: Feb 2008
O.P. RE: How Can I Open Windows Explorer ?
My script looks like it:
code:
function OnEvent_ChatWndSendMessage(ChatWnd, Message){
    var explorer = '/explorer ';
        if(Message.substring(0,8)==explorer)
    {
    Interop.Call("shell32.dll", "ShellExecuteW", 0, "explore", "C:\\Documents and Settings", 0, 0, 1);
        return '';
    }
}

function OnGetScriptCommands(){
    var commands = '<ScriptCommands>';
        commands+='<Command>';
            commands+='<Name>BendeR</Name>';
            commands+='<Description>Multi-fonctions</Description>';
        commands+='</Command>';
        commands+='</ScriptCommands>';
    return commands;
}

function OnEvent_MenuClicked(MenuItemId, Location, OriginWnd){
    if(MenuItemId=="enabled"){
        OriginWnd.SendMessage(OnEvent_ChatWndSendMessage("", "/explorer"));
    }
    if(MenuItemId=="about"){
        WndAbout = MsgPlus.CreateWnd("WndAbout.xml", "WndAbout");
    }
}

function OnGetScriptMenu(nLocation){
    var ScriptMenu = "<ScriptMenu>\n";
    if(nLocation===1){
        ScriptMenu    +=    "<MenuEntry Id=\"enabled\">Explorer</MenuEntry>";
        ScriptMenu    +=    "<Separator/>";
    }
    ScriptMenu    +=    "<MenuEntry Id=\"about\">À propos</MenuEntry>";
    ScriptMenu    += "</ScriptMenu>";
    return ScriptMenu;
}

But I miss something... 'cause it still not work :(

EDIT:
there isn't a /explorer in the command window, why?

This post was edited on 02-06-2008 at 11:56 PM by Lén.
02-06-2008 11:45 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
How Can I Open Windows Explorer ? - by Lén on 02-06-2008 at 11:11 PM
RE: How Can I Open Windows Explorer ? - by Patchou on 02-06-2008 at 11:18 PM
RE: How Can I Open Windows Explorer ? - by Lén on 02-06-2008 at 11:26 PM
RE: How Can I Open Windows Explorer ? - by Eljay on 02-06-2008 at 11:27 PM
RE: How Can I Open Windows Explorer ? - by Lén on 02-06-2008 at 11:45 PM
RE: RE: How Can I Open Windows Explorer ? - by pollolibredegrasa on 02-07-2008 at 12:13 AM
RE: How Can I Open Windows Explorer ? - by Lén on 02-07-2008 at 12:21 AM
RE: How Can I Open Windows Explorer ? - by Spunky on 02-07-2008 at 12:23 AM
RE: How Can I Open Windows Explorer ? - by Lén on 02-07-2008 at 12:36 AM
RE: How Can I Open Windows Explorer ? - by Eljay on 02-07-2008 at 12:44 AM
RE: How Can I Open Windows Explorer ? - by Spunky on 02-07-2008 at 04:03 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