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

[Help!] Advertiser
Author: Message:
Dhaya
Junior Member
**

Avatar
lala~

Posts: 25
Reputation: 4
38 / Male / –
Joined: Jul 2006
Sad  RE: [Help!] Advertiser
No this is not.

This is correct :
code:
function OnEvent_Initialize(MessengerStart)
{
MsgPlus.AddTimer ('Add1', '600000');
}

function OnEvent_Timer (TimerId)
{
  if (TimerId == "Add1")
  {
    var ContactsOpened = Messenger.CurrentChats;
    if (ContactsOpened.Count > 0)
    {
      var e = new Enumerator (ContactsOpened);
      for (; !e.atEnd(); e.moveNext())
      {
        var ChatWindow = e.item();
        ChatWindow.SendMessage('Please visit http://www.example.com/ for...');
      }
    }
  }
  MsgPlus.AddTimer ('Add1', '600000');
}


This portion of code will advertise your text every 10 minutes to each of your contacts that have opened a chat window with you.
Godamn JScript ! I HATE you ! ... but I love you so much <3
07-12-2006 07:08 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Help!] Advertiser - by fergofrog on 07-12-2006 at 12:03 AM
RE: [Help!] Advertiser - by ddunk on 07-12-2006 at 12:06 AM
RE: [Help!] Advertiser - by craig2k5 on 07-12-2006 at 12:14 AM
RE: [Help!] Advertiser - by fergofrog on 07-12-2006 at 12:18 AM
RE: [Help!] Advertiser - by Joereynolds89 on 07-12-2006 at 12:21 AM
RE: [Help!] Advertiser - by craig2k5 on 07-12-2006 at 12:21 AM
RE: [Help!] Advertiser - by deAd on 07-12-2006 at 12:23 AM
RE: [Help!] Advertiser - by fergofrog on 07-12-2006 at 12:36 AM
RE: [Help!] Advertiser - by Dhaya on 07-12-2006 at 07:08 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