Shoutbox

Run Windows Media Player from WLM - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: Run Windows Media Player from WLM (/showthread.php?tid=62632)

Run Windows Media Player from WLM by wlmcrap on 07-05-2006 at 11:36 PM

Hi,

I was wondering if somebody could please make a simple script so that when I type "/wmp" Windows Media Player will open. :)


RE: Run Windows Media Player from WLM by Joereynolds89 on 07-06-2006 at 12:19 AM

Im not a scripter but im trying to put something together, i have alittle of it, but missing the main part therefore ive created my own forum asking others for help :D


RE: Run Windows Media Player from WLM by wlmcrap on 07-06-2006 at 12:22 AM

What's the name of your forum and what site is it on?


RE: Run Windows Media Player from WLM by deAd on 07-06-2006 at 12:23 AM

Find the path to your WMP, then make a quicktext.

The shortcut: "/wmp"
The text to replace: "/run <path>"


RE: Run Windows Media Player from WLM by Joereynolds89 on 07-06-2006 at 12:25 AM

http://shoutbox.menthix.net/showthread.php?tid=62637


RE: Run Windows Media Player from WLM by wlmcrap on 07-06-2006 at 03:40 AM

Can someone please tell me how to fix my script so that it doesn't send the message to the contact, if you get what i mean.

Heres the Script:


function OnEvent_ChatWndSendMessage(ChatWnd, Message)
{
        if(Message == "!wmp")
        {
                ChatWnd.SendMessage("/run C:\\Program Files\\Windows Media Player\\wmplayer.exe");
        }
}

function OnEvent_Uninitialize(MessengerExit)
{
}


RE: Run Windows Media Player from WLM by Volv on 07-06-2006 at 06:11 AM

quote:
Originally posted by wlmcrap
Can someone please tell me how to fix my script so that it doesn't send the message to the contact, if you get what i mean.

Heres the Script:


function OnEvent_ChatWndSendMessage(ChatWnd, Message)
{
        if(Message == "!wmp")
        {
                ChatWnd.SendMessage("/run C:\\Program Files\\Windows Media Player\\wmplayer.exe");
        }
}

function OnEvent_Uninitialize(MessengerExit)
{
}

Please stop posting the same problem in multiple threads; look at the other thread, it has already been answered.
RE: Run Windows Media Player from WLM by wlmcrap on 07-06-2006 at 08:02 AM

Sorry to be a pest but does anyone know how to make it not send the message to the contact ?


RE: Run Windows Media Player from WLM by segosa on 07-06-2006 at 08:16 AM

code:
function OnEvent_ChatWndSendMessage(ChatWnd, Message)
{
        if(Message == "!wmp")
        {
                ChatWnd.SendMessage("/run C:\\Program Files\\Windows Media Player\\wmplayer.exe");
                return "";
        }
}


RE: Run Windows Media Player from WLM by wlmcrap on 07-06-2006 at 08:19 AM

Thanks heaps segosa. That works fine.