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:
whiz
Senior Member
****


Posts: 568
Reputation: 8
– / – / Flag
Joined: Nov 2008
O.P. RE: Help - /commands!
Okay, thanks, that works!  :D

Another question, though.

Using my current system of selecting a message from the script menu, if a command is selected (eg. /nudge, /block etc.), the script sends just the message.  If any other message is sent, it adds "AutoMessage:" to the start, so it sends in the Plus! auto-message format.

It does this with two variables, "setMsgPlusAM" (the user's way of turning the Plus! auto-message style on or off), and "setnoteMesCmd" (automatically turned on if the message starts with a /), which, if active, disables the "AutoMessage:" start.  The code below will hopefully explain this better.
Javascript code:
function OnEvent_Timer(TimerID)
{
    Debug.Trace("Instant Response  |  Timer completed!");
    if (setMsgPlusAM)  // user's Plus! auto-message setting on
    {
        if (setnoteMesCmd)  // if message starts with a "/" (/command)
        {
            Messenger.OpenChat(TimerID).SendMessage(settingMessage);
            //  do not add the prefix to the message
        }
        else
        {
            Messenger.OpenChat(TimerID).SendMessage("AutoMessage: " + settingMessage);
            //  add the prefix to the message
        }
    }
    else
    {
        Messenger.OpenChat(TimerID).SendMessage(settingMessage);
        //  do not add the prefix to the message
    }
    Debug.Trace("Instant Response  |  Message sent!");
}


Can I set the script so that when the user types "/ir.message /command", the script can turn the "setnoteMesCmd" variable as true, so that the auto-message prefix will not be added?

Is this possible with a wildcard of some sort?  Like:
Javascript code:
if (parameter=="/" + *)
{
setnoteMesCmd = true;
}
else
{
setnoteMesCmd = false;
}

02-02-2009 10:59 AM
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