Shoutbox

Script help - 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: Script help (/showthread.php?tid=70643)

Script help by plus on 01-13-2007 at 07:08 PM

I read the offical scripting document and i didnt unterstand it all. I was hoping for some help from you guys(Y)......

If i type Mock can i make the script to display a toast saying The mocker is on
and if i say NoMock it will say the mocker is off

If yes what is it i put into the script editer.

one more thing

When i type Mock to activate the mock can it send a message to all my open windows saying Talk to me if yes what do i put in

Thanks alot in advance(Y)


RE: Script help by matty on 01-13-2007 at 07:35 PM

code:
function OnEvent_ChatWndSendMessage(oChatWnd, sMessage){
    if (sMessage === 'Mock'){
        MsgPlus.DisplayToast('Mock', 'Mock is on');
    }
    else if (sMessage === 'NoMock'){
        MsgPlus.DisplayToast('Mock', 'Mock is off');
    }
}

RE: Script help by plus on 01-13-2007 at 07:40 PM

Thanks :)