What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Request] Away Talker

[Request] Away Talker
Author: Message:
cloudhunter
Senior Member
****


Posts: 536
Reputation: 18
37 / – / –
Joined: Dec 2005
RE: [Request] Away Talker
Here is working code :)
code:
var IsItOn = 0;

function OnEvent_ChatWndSendMessage(ChatWnd, Message)
{
  if(Message.substr(0,8) == "*PtalkOn")
  {
    IsItOn = 1;
    return "";
  }
  if(Message.substr(0,9) == "*PtalkOff")
  {
    IsItOn = 0;
    return "";
  }
}

function OnEvent_ChatWndReceiveMessage(chatwnd, sOrigin, sMessage, nMessageKind)
{
if (sMessage.substr(0,2) == "Hi" || sMessage.substr(0,2) == "hi")
{
  if (IsItOn == 1)
  {
    pChatWnd.SendMessage("Hey!");
  } else {
    Debug.trace("IsItOns value is " + IsItOn + ", not 1, message not sent");
  }
} else {
  Debug.trace("Message is " + sMessage + ", not Hi or hi, nothing done.");
}
}


Let me know if it doesn't work.

Cloudy
[Image: cloudy.jpg]
Sig by pirateok/marisaok/marisa ;)
quote:
Originally posted by Moulin Rouge
The greatest thing you'll ever learn, is just to love and be loved in return

6914 days, 12 hours, 34 minutes, 50 seconds ago
07-07-2006 01:20 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Request] Away Talker - by Paril on 07-06-2006 at 08:40 PM
RE: [Request] Away Talker - by J-Thread on 07-06-2006 at 09:13 PM
RE: [Request] Away Talker - by absorbation on 07-06-2006 at 09:15 PM
RE: [Request] Away Talker - by cloudhunter on 07-07-2006 at 01:20 AM
RE: [Request] Away Talker - by cooldude_i06 on 07-07-2006 at 01:25 AM
RE: [Request] Away Talker - by Silentdragon on 07-07-2006 at 01:40 AM
RE: [Request] Away Talker - by S4mP410 on 07-07-2006 at 02:31 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