Shoutbox

[HELP] How to make it so that you autoreply to a word in a sentence? - 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: [HELP] How to make it so that you autoreply to a word in a sentence? (/showthread.php?tid=65523)

[HELP] How to make it so that you autoreply to a word in a sentence? by [Shadow] on 08-29-2006 at 02:29 AM

I mean.. How do you make it so that for instance, if you wanted to auto reply with "Hello." To a message that had several words but "Hi" Somewhere in that sentence, how would you do that? x.x


RE: [HELP] How to make it so that you autoreply to a word in a sentence? by DarkMe on 08-29-2006 at 03:01 AM

Answer Machine Plus :p I guess
http://shoutbox.menthix.net/showthread.php?tid=64534


RE: [HELP] How to make it so that you autoreply to a word in a sentence? by [Shadow] on 08-29-2006 at 09:09 PM

Eeh, that helps.. A bit.. But, could you or anyone else just specify what scripting thingie I need to add to get it to detect the word even if it's in a sentence? Thanks.


RE: [HELP] How to make it so that you autoreply to a word in a sentence? by DarkMe on 08-29-2006 at 09:13 PM

quote:
Originally posted by [Shadow]
Eeh, that helps.. A bit.. But, could you or anyone else just specify what scripting thingie I need to add to get it to detect the word even if it's in a sentence? Thanks.
When you add a reply just select:
fragment for only a part of a word
word for all the word
sentence for the entire sentence
http://shoutbox.menthix.net/attachment.php?pid=713370
RE: [HELP] How to make it so that you autoreply to a word in a sentence? by cloudhunter on 08-29-2006 at 09:14 PM

He means the scripting commands. Maybe use a regexp match?

Cloudy


RE: [HELP] How to make it so that you autoreply to a word in a sentence? by DarkMe on 08-29-2006 at 09:16 PM

Oh :o i haven't noticed that :p sorry


RE: [HELP] How to make it so that you autoreply to a word in a sentence? by alexp2_ad on 08-29-2006 at 09:17 PM

code:
function OnEvent_ChatWndReceiveMessage(pChatWnd,sOrigin,sMessage,nKind){
    if(sOrigin != Messenger.MyName && sMessage.match(/hi/i)){
        pChatWnd.SendMessage("Hello.");
    }
}

You could also add && (Messenger.MyStatus == 3 || Messenger.MyStatus == 4)   so it'd only reply when you're online or busy.
RE: [HELP] How to make it so that you autoreply to a word in a sentence? by [Shadow] on 08-29-2006 at 09:19 PM

Thanks.