Help me please - Script with counter and auto-response - 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: Help me please - Script with counter and auto-response (/showthread.php?tid=92452) Help me please - Script with counter and auto-response by sbari on 10-03-2009 at 06:24 PM
RE: Help me please - Script with counter and auto-response by roflmao456 on 10-03-2009 at 06:33 PM Try out the MsgPlus.AddTimer and ChatWnd.SendMessage functions. RE: Help me please - Script with counter and auto-response by sbari on 10-04-2009 at 09:51 AM
quote: 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 RE: Help me please - Script with counter and auto-response by ArkaneArkade on 10-04-2009 at 09:57 PM
OK, I'm far from an expert, but that doesn't make sense to me at all. RE: Help me please - Script with counter and auto-response by Spunky on 10-04-2009 at 10:54 PM
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. RE: Help me please - Script with counter and auto-response by Nathan on 10-04-2009 at 11:46 PM I'm sure someone here can save him the hassle and write it for him? It will take you guys 2 minutes, if that? RE: Help me please - Script with counter and auto-response by Spunky on 10-05-2009 at 12:37 AM But then nobody learns anything... RE: RE: Help me please - Script with counter and auto-response by ryxdp on 10-05-2009 at 12:40 AM
quote: Yeah, if we knew what we were supposed to be writing He seriously needs to learn how to code at least decently and tell us what he wants EDIT: Also the previous post. RE: Help me please - Script with counter and auto-response by sbari on 10-05-2009 at 10:55 AM
RE: Help me please - Script with counter and auto-response by sbari on 10-05-2009 at 11:18 AM
RE: Help me please - Script with counter and auto-response by matty on 10-05-2009 at 01:02 PM You can work off of the following code. This will send a message to the contact and will reply each time they send a message. Javascript code: RE: Help me please - Script with counter and auto-response by sbari on 10-05-2009 at 04:35 PM
thank you Matty RE: Help me please - Script with counter and auto-response by matty on 10-05-2009 at 04:36 PM That makes no sense... anyone understand that? RE: Help me please - Script with counter and auto-response by sbari on 10-05-2009 at 05:05 PM
sorry, i am french. RE: RE: Help me please - Script with counter and auto-response by sbari on 10-05-2009 at 05:13 PM
quote: the script will an automatic bot : this script will send 2 messages : -> one message send every 20 minutes in the active windows only -> the second send every 5 minutes after the first message in the active windows only thank you very much, because i try to script that but i don't understand RE: Help me please - Script with counter and auto-response by matty on 10-08-2009 at 05:10 PM
Not exactly what you asked for but I will explain what this does. Javascript code: RE: Help me please - Script with counter and auto-response by sbari on 10-08-2009 at 09:09 PM thank you very much matty RE: Help me please - Script with counter and auto-response by sbari on 10-09-2009 at 10:40 AM
hello matty, RE: Help me please - Script with counter and auto-response by sbari on 10-09-2009 at 10:42 AM it is the ',' RE: Help me please - Script with counter and auto-response by matty on 10-09-2009 at 12:52 PM I am at work when I write the most of the scripts for this forum and cannot test them. Glad you were able to figure it out. RE: Help me please - Script with counter and auto-response by sbari on 10-09-2009 at 02:18 PM
RE: Help me please - Script with counter and auto-response by sbari on 10-09-2009 at 02:33 PM
This script send a message just when i change my status in busy status. |