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:
fergofrog
Full Member
***

Avatar

Posts: 121
Reputation: 4
31 / Male / –
Joined: May 2006
O.P. [Help!] Advertiser
I am attempting to build a script for some one, how do you get messenger to send a message say every 10 mins, i just need the every 10mins part.
[Image: fergofrog.png][Image: repute.gif]
07-12-2006 12:03 AM
Profile E-Mail PM Web Find Quote Report
ddunk
Veteran Member
*****

Avatar

Posts: 1228
Reputation: 51
35 / Male / Flag
Joined: Mar 2004
RE: [Help!] Advertiser
http://m00.cx/mpl/docs/index.html?page=ref-msgplus-addtimer.htm
07-12-2006 12:06 AM
Profile E-Mail PM Web Find Quote Report
craig2k5
Junior Member
**


Posts: 64
Joined: Feb 2006
RE: [Help!] Advertiser
and the spamming starts :(
My Scripts:
NickName Maker
07-12-2006 12:14 AM
Profile E-Mail PM Find Quote Report
fergofrog
Full Member
***

Avatar

Posts: 121
Reputation: 4
31 / Male / –
Joined: May 2006
O.P. RE: [Help!] Advertiser
quote:
Originally posted by Ddunk
http://m00.cx/mpl/docs/index.html?page=ref-msgplus-addtimer.htm

It's not working. + how many milliseconds in a second?
[Image: fergofrog.png][Image: repute.gif]
07-12-2006 12:18 AM
Profile E-Mail PM Web Find Quote Report
Joereynolds89
Junior Member
**


Posts: 69
Joined: Jul 2006
RE: [Help!] Advertiser
1 second = 1 000 milliseconds


code:
Syntax

    AddTimer(
        [string] TimerId,
        [number] Elapse
    );

Parameters

TimerId
    [string] Unique string identifying the new timer. Every script can create up to 100 timers, each one with their own unique identifier. When a timer event occurs, the Id is passed as parameter. You can specify any string you want for TimerId apart from an empty string. Different scripts can use identical TimerId without worrying of possible conflicts.
Elapse
    [number] Amount of time that has to elapse, in milliseconds, before the event is fired. This number needs to be in the range of 100 to 86,4000,000 (one day).

This post was edited on 07-12-2006 at 12:23 AM by Joereynolds89.
07-12-2006 12:21 AM
Profile E-Mail PM Find Quote Report
craig2k5
Junior Member
**


Posts: 64
Joined: Feb 2006
RE: [Help!] Advertiser
AddTimer([string] TimerId,[number] Elapse);

For Example:

AddTimer(timer1,1000);

That would add a new timer called "timer1" and it would activate after 1 second (1000 milliseconds in a second) so for you.. you would have to change it to *-)

*Craig2k5 gets the calculator

600 000 milliseconds *-) i think lol :$

This post was edited on 07-12-2006 at 12:24 AM by craig2k5.
My Scripts:
NickName Maker
07-12-2006 12:21 AM
Profile E-Mail PM Find Quote Report
deAd
Scripting Contest Winner
*****

Avatar

Posts: 1060
Reputation: 28
– / Male / Flag
Joined: Jan 2006
RE: [Help!] Advertiser
No it wouldn't.

code:
AddTimer('timer1',1000);

You put a variable instead of a string.
07-12-2006 12:23 AM
Profile PM Find Quote Report
fergofrog
Full Member
***

Avatar

Posts: 121
Reputation: 4
31 / Male / –
Joined: May 2006
O.P. RE: [Help!] Advertiser
Is this correct:

code:
function OnEvent_Initialize(MessengerStart)
{
    AddTimer ('Add1', '600,000');
}

function OnEvent_Timer ('Add1')
{
    ChatWnd.SendMessage('Please visit http://www.example.com/ for...')
}

function OnEvent_Uninitialize(MessengerExit)
{
}



This post was edited on 07-12-2006 at 12:40 AM by fergofrog.
[Image: fergofrog.png][Image: repute.gif]
07-12-2006 12:36 AM
Profile E-Mail PM Web Find Quote Report
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 »


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