What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Help me please - Script with counter and auto-response

Pages: (3): « First [ 1 ] 2 3 » Last »
Help me please - Script with counter and auto-response
Author: Message:
sbari
New Member
*


Posts: 12
– / Male / Flag
Joined: Oct 2009
O.P. Huh?  Help me please - Script with counter and auto-response
   
Hello.

I would like to make a script that writes a message every 20 minutes.

Can you help me please?

Thank you in advance. ;)
10-03-2009 06:24 PM
Profile E-Mail PM Find Quote Report
roflmao456
Skinning Contest Winner
****

Avatar

Posts: 955
Reputation: 24
27 / Male / Flag
Joined: Nov 2006
Status: Away
RE: Help me please - Script with counter and auto-response
Try out the MsgPlus.AddTimer and ChatWnd.SendMessage functions.
[quote]
Ultimatess6
: What a noob mod
10-03-2009 06:33 PM
Profile PM Web Find Quote Report
sbari
New Member
*


Posts: 12
– / Male / Flag
Joined: Oct 2009
O.P. RE: Help me please - Script with counter and auto-response
quote:
Originally posted by roflmao456
Try out the MsgPlus.AddTimer and ChatWnd.SendMessage functions.

I explained my problem. When I put the ChatWnd, it does not recognize.

Can you help me please?
I want the script to write one sentence every 20 minutes, when my status is "busy".

Thank you very much.

Here is my code if it helps you.

var messages = new Array(), i=0;
messages[0] = "First Message";
messages[1] = "Second Message";
messages[2] = "Third Message";
function OnEvent_Initialize(MessengerStart)
{
}
function OnEvent_Uninitialize(MessengerExit)
{
}

function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message)
{
    if(Origin != Messenger.MyName)
    {
        if(!i[ChatWnd.Handle])i[ChatWnd.Handle]=0;
        if(i[ChatWnd.Handle] == messages.length)i[ChatWnd.Handle]=0;
        ChatWnd.SendMessage(messages[i[ChatWnd.Handle]++]);
    }
}


up :(
10-04-2009 09:51 AM
Profile E-Mail PM Find Quote Report
ArkaneArkade
Full Member
***

Avatar
The One and Only

Posts: 193
Reputation: 5
36 / Male / Flag
Joined: Mar 2007
RE: Help me please - Script with counter and auto-response
OK, I'm far from an expert, but that doesn't make sense to me at all.
Can you give a better description of what exactly it is you want to end up with.


From the looks of your code, you have predefined messages, and you want to send one of those every 20 minutes.  who are you trying to send the messages to?  What happens at the end of the hour (from example) do you want the script to exit or loop back to the start of the array?
how do you want the script to start?  You have OnEvent_ChatWndReceiveMessage - does that mean you want a specific message, or just any message from anybody?
[Image: adsig.jpg]
10-04-2009 09:57 PM
Profile E-Mail PM Web Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
33 / Male / Flag
Joined: Aug 2006
RE: Help me please - Script with counter and auto-response
I can't see why ChatWnd would not be recognized, but your code is seriously wrong. Arrays don't work like that. i never gets incremented properly and that means you're trying to specify an index to the array 0, when your array is messages.

Try learning JScript (or Javascript) first and then come back to it.
<Eljay> "Problems encountered: shit blew up" :zippy:
10-04-2009 10:54 PM
Profile PM Find Quote Report
Nathan
Veteran Member
*****

Avatar
Yeah, "large dimensions" ;)

Posts: 2984
Reputation: 76
– / Male / Flag
Joined: Apr 2005
RE: Help me please - Script with counter and auto-response
I'm sure someone here can save him the hassle and write it for him? It will take you guys 2 minutes, if that? :)
Touch Innovation - touch friendly programs/applications for the windows mobile!


10-04-2009 11:46 PM
Profile E-Mail PM Web Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
33 / Male / Flag
Joined: Aug 2006
RE: Help me please - Script with counter and auto-response
But then nobody learns anything...
<Eljay> "Problems encountered: shit blew up" :zippy:
10-05-2009 12:37 AM
Profile PM Find Quote Report
ryxdp
Senior Member
****


Posts: 804
Reputation: 16
27 / Male / Flag
Joined: Jun 2006
RE: RE: Help me please - Script with counter and auto-response
quote:
Originally posted by Nathan
I'm sure someone here can save him the hassle and write it for him? It will take you guys 2 minutes, if that? :)

Yeah, if we knew what we were supposed to be writing :P He seriously needs to learn how to code at least decently and tell us what he wants :undecided:

EDIT: Also the previous post.

This post was edited on 10-05-2009 at 12:41 AM by ryxdp.
10-05-2009 12:40 AM
Profile PM Find Quote Report
sbari
New Member
*


Posts: 12
– / Male / Flag
Joined: Oct 2009
O.P. RE: Help me please - Script with counter and auto-response
   
Sorry for my description too vague. I want a script that sends a phrase every 20 minutes and then 2 minutes after the sentence is sent, I want another sentence be sent. I also want my script works in status "busy".

   
Thank you very much for your help. Actually this is my first script, and I am a bit lost :(
10-05-2009 10:55 AM
Profile E-Mail PM Find Quote Report
sbari
New Member
*


Posts: 12
– / Male / Flag
Joined: Oct 2009
O.P. RE: Help me please - Script with counter and auto-response
   
small precision: The sentences are sent sent on the current chat window.
10-05-2009 11:18 AM
Profile E-Mail PM Find Quote Report
Pages: (3): « First [ 1 ] 2 3 » Last »
« 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