What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Help - /commands!

Help - /commands!
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Help - /commands!
Javascript code:
//Add to the top of the script
var strMessage = '';
var intTimer = 0;


Javascript code:
function OnEvent_ChatWndSendMessage(oChatWnd, sMessage) {
    if (/^\/([^\s\/]+)\s*([\s\S]*)$/.exec(sMessage) !== null) {
        var command = RegExp.$1.toLowerCase();
        var parameter = RegExp.$2;
        switch (command) {
                case 'ir.message':
                        strMessage = parameter;                        return "";
                case 'ir.timer':
                        intTimer = (typeof parseInt(parameter) === 'number' ? parseInt(parameter) : 0);                         return "";
        }
    }
}


This post was edited on 02-01-2009 at 05:53 PM by matty.
02-01-2009 05:53 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Help - /commands! - by whiz on 02-01-2009 at 12:38 PM
RE: Help - /commands! - by matty on 02-01-2009 at 05:53 PM
RE: Help - /commands! - by whiz on 02-02-2009 at 10:59 AM
RE: Help - /commands! - by Matti on 02-02-2009 at 03:30 PM
RE: Help - /commands! [NEW QUESTION!] - by Jesus on 02-07-2009 at 01:15 PM
RE: Help - /commands! - by whiz on 02-15-2009 at 11:45 AM


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