Chances are there is a program out tehre that does this but i am sorta new to this whole programing thingy and I'm trying to make a program my self and all i'm trying to do is get this to open paint and i got it to open paint but a pop up saying "The Command you entered was not recognized.
If the message was not ment to be a commant, insert a double '//' at its beginning." when i try and use the command. can you help me?
here is what i got for the script:
code:
function OnEvent_ChatWndSendMessage(ChatWnd,Message){
if(Message=="/paint"){
var shell = new ActiveXObject("wscript.shell");
shell.Run("mspaint.exe");
}
}
function OnGetScriptCommands(){
var commands = '<ScriptCommands>';
commands+='<Command>';
commands+='<Name>/paint</Name>';
commands+='<Description>Open paint.</Description>';
commands+='</Command>';
return commands;
}