I need to run a program through javascript, mainly to answer someone elses thread but also to try to teach myself how to script
The person im trying to help while teaching myself
http://shoutbox.menthix.net/showthread.php?tid=62632
so far i have
quote:
function OnEvent_ChatWndSendMessage(ChatWnd, sMessage)
{
if (sMessage == "/WMP")
{
(Whatever command needed to run the program here, default directory for application is C:\Program Files\Windows Media Player\wmplayer.exe as far as i know)
return "";
}
else
{
MsgPlus.DisplayToast("WMP", "Loading WMP Failed");
}
}
Any help will be greatly appreciated!
Regards, Joe