Automated reply problem - 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: Automated reply problem (/showthread.php?tid=83370) Automated reply problem by le-foot on 04-24-2008 at 02:59 PM
Hello, RE: Automated reply problem by MeEtc on 04-24-2008 at 03:13 PM
This is going into an infinite loop because OnEvent_ChatWndReceiveMessage is called when you send a message too! What you will want to do is compare the Origin parameter to your current display name. That will tell you if you are sending the message, or if its coming from your contact. One word of caution is that there are addons that can set a chat-only name (like StuffPlug) so you will also have to compare the chat only name as it is stored in the registry if you plan on using that feature any time in the future. RE: Automated reply problem by le-foot on 04-24-2008 at 03:15 PM
Thanks for the reply. I see that is a problem, however I'm not familiar with using parameters. Could you give me an example, or point me to an example, of how a parameter is used in this case? RE: Automated reply problem by MeEtc on 04-24-2008 at 03:21 PM
I'm not quite sure what you mean by that... ? quote:I would recommend using the numeric constants instead of the associated names. I recommend you read a bit more thoroughly through the documentation for OnEvent_ChatWndReceiveMessage RE: Automated reply problem by le-foot on 04-24-2008 at 03:23 PM
Yup sorry never mind. RE: Automated reply problem by MeEtc on 04-24-2008 at 03:26 PM not equal is != RE: Automated reply problem by le-foot on 04-25-2008 at 02:29 AM
Ok so I try this: RE: Automated reply problem by roflmao456 on 04-25-2008 at 02:38 AM
i think functions are case-sensitive so here's the fixed code code: the code should work, only when a contact sends you a message RE: Automated reply problem by le-foot on 04-25-2008 at 05:45 AM
>_< RE: Automated reply problem by le-foot on 04-25-2008 at 09:06 AM
function OnEvent_ContactSignin(Email){ RE: RE: Automated reply problem by Veggie on 04-25-2008 at 10:45 AM
quote: code:Untested RE: Automated reply problem by le-foot on 04-27-2008 at 06:27 AM Thanks, that worked perfectly. RE: Automated reply problem by le-foot on 05-02-2008 at 10:04 AM
is there an "Elseif" in the script? If so, what is the syntax? RE: Automated reply problem by Spunky on 05-02-2008 at 06:12 PM
if(condition){ |