What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Help] program opener

[Help] program opener
Author: Message:
markee
Veteran Member
*****

Avatar

Posts: 1622
Reputation: 50
36 / Male / Flag
Joined: Jan 2006
RE: [Help] program opener
Your code was quite good, the only problem was you forgot to return a blank string at the end of calling the command.  I updated the code with this small fix to help you.  Have fun coding ;)
code:
function OnEvent_ChatWndSendMessage(ChatWnd,Message){
   
    if(Message=="/paint"){

        var shell = new ActiveXObject("wscript.shell");
        shell.Run("mspaint.exe");
        return "";

    }

}
function OnGetScriptCommands(){
    var commands = '<ScriptCommands>';
        commands+='<Command>';
            commands+='<Name>paint</Name>';
            commands+='<Description>Open paint.</Description>';
        commands+='</Command>';
    return commands;
}

This post was edited on 04-07-2007 at 02:44 PM by markee.
[Image: markee.png]
04-07-2007 02:24 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Help] program opener - by .:lil-wolf:. on 04-07-2007 at 02:04 PM
RE: [Help] program opener - by markee on 04-07-2007 at 02:24 PM
RE: [Help] program opener - by .:lil-wolf:. on 04-07-2007 at 02:28 PM
RE: [Help] program opener - by .:lil-wolf:. on 04-07-2007 at 02:39 PM
RE: [Help] program opener - by markee on 04-07-2007 at 02:45 PM
RE: [Help] program opener - by .:lil-wolf:. on 04-07-2007 at 02:49 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