What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » How wo Run a Program through Javascript

How wo Run a Program through Javascript
Author: Message:
foaly
Senior Member
****

Avatar

Posts: 718
Reputation: 20
38 / Male / Flag
Joined: Jul 2006
RE: How wo Run a Program through Javascript
to display toast on error:

code:
function OnEvent_Initialize(MessengerStart)
{
}
function OnEvent_ChatWndSendMessage(ChatWnd, Message)
{
if(Message == "/WMP")
{
try{
ChatWnd.SendMessage("/run C:\\Program Files\\Windows Media Player\\wmplayer.exe");
MsgPlus.DisplayToast("WMP", "WMP is Loading...", 'notify.mp3', "", "");
}catch(err){
MsgPlus.DisplayToast("WMP", "Loading WMP failed", 'notify.mp3', "", "");
}
return "";
}
}
function OnEvent_Uninitialize(MessengerExit)
{
}



07-06-2006 10:31 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
How wo Run a Program through Javascript - by Joereynolds89 on 07-06-2006 at 12:18 AM
RE: How wo Run a Program through Javascript - by ShawnZ on 07-06-2006 at 12:27 AM
RE: How wo Run a Program through Javascript - by Joereynolds89 on 07-06-2006 at 12:36 AM
RE: How wo Run a Program through Javascript - by ShawnZ on 07-06-2006 at 12:38 AM
RE: How wo Run a Program through Javascript - by Joereynolds89 on 07-06-2006 at 12:40 AM
RE: RE: How wo Run a Program through Javascript - by alexp2_ad on 07-06-2006 at 12:43 AM
RE: How wo Run a Program through Javascript - by Joereynolds89 on 07-06-2006 at 12:44 AM
RE: How wo Run a Program through Javascript - by Lou on 07-06-2006 at 12:53 AM
RE: How wo Run a Program through Javascript - by Joereynolds89 on 07-06-2006 at 01:00 AM
RE: How wo Run a Program through Javascript - by Keikonium on 07-06-2006 at 01:08 AM
RE: How wo Run a Program through Javascript - by Pai on 07-06-2006 at 02:01 AM
RE: How wo Run a Program through Javascript - by wlmcrap on 07-06-2006 at 09:48 PM
RE: How wo Run a Program through Javascript - by Joereynolds89 on 07-06-2006 at 09:53 PM
RE: How wo Run a Program through Javascript - by foaly on 07-06-2006 at 10:31 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