Shoutbox

WakeUp Call??? - 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: WakeUp Call??? (/showthread.php?tid=81305)

WakeUp Call??? by MisterJef on 01-29-2008 at 08:53 PM

hey i would like to know if there is a way to make a script that some does like ^wakeup and the computer does a music or sound with internal speaker is there a way???


RE: WakeUp Call??? by mynetx on 01-29-2008 at 09:01 PM

Well, you can write a script implementing the function OnEvent_ChatWndReceiveMessage and playing an attached media file using MsgPlus.PlaySound, something like this here:

code:
var MSGKIND_SAYS = 1;
function OnEvent_ChatWndReceiveMessage(wndChatWnd, strOrigin, strMessage, intMessageKind) {
    if(strOrigin == Messenger.MyName || strMessage != "!wakeup" || intMessageKind != MSGKIND_SAYS)
        return strMessage;
    MsgPlus.PlaySound("Sounds\\wakeup.mp3");
    return strMessage;
}

However, the script would have to be installed on the recipient's side, that is, the one you want to make awake.

Big note: Messenger Nudging function is supposed to do just that, and its advantage is that no script is needed on neither side.