What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Auto Responding Answering Machine Script (based on timeout not keywords)

Pages: (2): « First [ 1 ] 2 » Last »
Poll: Is this suggestion do-able? Or it already exists?
Yes, it's possible (but no one's done it yet)
Yes, it's possible (and it's already out there!)
No, it's impossible
No idea... Hmm...
[Show Results | Edit Poll]
Note: This is a public poll; other users will be able to see what you voted for.
Auto Responding Answering Machine Script (based on timeout not keywords)
Author: Message:
lowaloysius
New Member
*


Posts: 7
Joined: Jan 2010
O.P. Auto Responding Answering Machine Script (based on timeout not keywords)
I've been looking for an answering machine script, which automatically responds with some pre-configured message if I don't view the message within a pre-set time.

So far the answering machine scripts I have seen only seem to be doing the automatic answering based on keywords / people, but none appears to be doing what I'm looking for.

I'm just wondering if this feature can be done by scripting extensions, or is this totally impossible. If it's possible, it'll be great if someone could code it! Feedback anyone? :)

P.S. If something like this is already out there, please point me to it - I've been browsing the scripts from start to end but can't find anything like that... TIA!

This post was edited on 01-17-2010 at 11:33 PM by lowaloysius.
01-17-2010 04:09 PM
Profile E-Mail PM Find Quote Report
stoshrocket
Senior Member
****

Avatar
formerly methos

Posts: 748
Reputation: 31
34 / Male / Flag
Joined: Aug 2005
RE: Suggestion
Looking over the database I don't think it's been done yet, but it is certainly possible. However, I'm in the middle of my exams and suck at javascript, so I don't think I'd be the right person to try and code it. With a little knowledge and some time you could give it a go yourself though!
formerly methos
01-17-2010 04:34 PM
Profile PM Web Find Quote Report
Chrissy
Senior Member
****

Avatar

Posts: 850
Reputation: 5
29 / Male / Flag
Joined: Nov 2009
RE: Suggestion
quote:
Originally posted by stoshrocket
Looking over the database I don't think it's been done yet, but it is certainly possible. However, I'm in the middle of my exams and suck at javascript, so I don't think I'd be the right person to try and code it. With a little knowledge and some time you could give it a go yourself though!
It's JScript is it not?
01-17-2010 08:18 PM
Profile E-Mail PM Web Find Quote Report
stoshrocket
Senior Member
****

Avatar
formerly methos

Posts: 748
Reputation: 31
34 / Male / Flag
Joined: Aug 2005
RE: Suggestion
quote:
Originally posted by krissy-afc
quote:
Originally posted by stoshrocket
Looking over the database I don't think it's been done yet, but it is certainly possible. However, I'm in the middle of my exams and suck at javascript, so I don't think I'd be the right person to try and code it. With a little knowledge and some time you could give it a go yourself though!
It's JScript is it not?
Indeed, but if I suck at Javascript I'm not going to be much better in JScript am I? :P
formerly methos
01-17-2010 08:25 PM
Profile PM Web Find Quote Report
lowaloysius
New Member
*


Posts: 7
Joined: Jan 2010
O.P. RE: Auto Responding Answering Machine Script (based on timeout not keywords)
i'm still trying to get the hang of jscript... never done it before... was reading the scripting help file but it'll take time cos i'm still trying to understand it...

hopefully someone more experienced is able to help create this script - i promise i'll rush to download and use it once it's done ;)
01-18-2010 05:23 AM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Auto Responding Answering Machine Script (based on timeout not keywords)
This isn't as easy said as done.

Currently the only way to subclass the chat windows is to use an external library.

However before something like this can be done you need to answer a few questions.

  • How do you determine if the message is read? Would the counter only start if the window was minimized or would it be classified as read if the window is in the foreground?
  • What would happen if 2 messages are received 10 seconds apart, do you reset the timer? Add a second timer? Ignore all subsequent messages?

This post was edited on 01-18-2010 at 02:52 PM by matty.
01-18-2010 02:30 PM
Profile E-Mail PM Find Quote Report
lowaloysius
New Member
*


Posts: 7
Joined: Jan 2010
O.P. RE: RE: Auto Responding Answering Machine Script (based on timeout not keywords)
hi matty,

my answers below.

maybe to simplify things, let's tie it to the way the chat windows are behaving now...

when someone sends a message, it blinks if it's not in the foreground, and after some time of blinking, it stops blinking and stays 'lighted' (the orange colour if you get what i meant)...

so similarly, when the window stops blinking and stays lighted it can send the automated reply... of course, it'll be good if a time delay can be set so say after 5 mins if the window is still not brought to the foreground, the auto reply message gets sent...

quote:
Originally posted by matty
This isn't as easy said as done.

Currently the only way to subclass the chat windows is to use an external library.

However before something like this can be done you need to answer a few questions.

  • How do you determine if the message is read?
    --> much like the blinking window, once you bring the window to the foreground, it's considered 'read'.
    Would the counter only start if the window was minimized or would it be classified as read if the window is in the foreground?
    --> Counter will only start if the message is received and the chat window is not in the foreground
  • What would happen if 2 messages are received 10 seconds apart, do you reset the timer? Add a second timer? Ignore all subsequent messages?
    --> only the first message counts, much like the blinking window again - if you don't bring it to the foreground, it blinks for a while before staying 'lighted' instead of blinking continuously


hope this clarifies :)

so is it still do-able? or not possible at all?
01-18-2010 03:08 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Auto Responding Answering Machine Script (based on timeout not keywords)
It is still doable. Just without writing an external library for it will be quite a bit memory intensive.
01-18-2010 03:29 PM
Profile E-Mail PM Find Quote Report
lowaloysius
New Member
*


Posts: 7
Joined: Jan 2010
O.P. RE: RE: Auto Responding Answering Machine Script (based on timeout not keywords)
quote:
Originally posted by matty
It is still doable. Just without writing an external library for it will be quite a bit memory intensive.

hi matty,

does this mean you'll be able to work on it? and with the help of an external library?

anyway don't sound good if it's memory intensive so it sure sound like a very challenging one...

i'll await with great anticipation... :)
01-19-2010 01:33 AM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Auto Responding Answering Machine Script (based on timeout not keywords)
Here is something quick, dirty and untested:

Edit: Just realized it wont actually work because after you send a message it will be deleted from the object and the code will be fired again if they send another one...

js code:
// Create an object container
var objChatWnd = {};
// Define the message to send
var sMessageToSend = 'I have not read your message yet. But don\'t worry; I will!';

// Capture any message we send and store them in the object container
function OnEvent_ChatWndSendMessage(oChatWnd, sMessage) {
    objChatWnd[oChatWnd.Handle] = {};
        objChatWnd[oChatWnd.Handle].oChatWnd = oChatWnd;
        objChatWnd[oChatWnd.Handle].sMessage = sMessage;
        objChatWnd[oChatWnd.Handle].nTimer = 0;
}

// Check if we sent the message or if the contact did
function OnEvent_ChatWndReceiveMessage(oChatWnd, sOrigin, sMessage, nMessageKind) {
    if (objChatWnd[oChatWnd.Handle].sMessage === sMessage &&
         sMessage !== sMessageToSend) {
        // Chances are that this is the message we just sent
        delete objChatWnd[oChatWnd.Handle];
        return sMessage;
    }
   
    if (Interop.Call('user32', 'GetForegroundWindow') !== oChatWnd.Handle) {
        // A message was received but the Window isn't in the foreground
        if (typeof objChatWnd[oChatWnd.Handle] !== 'object') {
            // Also this is the first message received from the contact
            //we wont acount for consecutive messages
            objChatWnd[oChatWnd.Handle] = {};
                objChatWnd[oChatWnd.Handle].oChatWnd = oChatWnd;
                objChatWnd[oChatWnd.Handle].nTimer = 0;
            MsgPlus.AddTimer(oChatWnd.Handle, 100);
        }
    }
}

// If we haven't opened the message in a minute then reply otherwise increment our counter
function OnEvent_Timer(sTimerId) {
    // Chat window is open nothing further to be done here
    if (Interop.Call('user32'. 'GetForegroundWindow') === sTimerId) {
        /* by not deleting the object the code should never fire if the contact sends another message
        after we say we didn't read it yet */
        //delete objChatWnd[sTimerId];
        return;
    }

    // Chat window hasn't been opened yet but a minute hasn't passed... increment the counter
    if (objChatWnd[sTimerId].nTimer / 100 !== 60) { // 1 minute
        ++objChatWnd[sTimerId].nTimer;
        MsgPlus.AddTimer(sTimerId, 100);
    } else {
    // Message hasn't been read in a minute send the message if we are allowed
        if (objChatWnd[sTimerId].oChatWnd.EditChangeAllowed === true) {
            objChatWnd[sTimerId].oChatWnd.SendMessage(sMessageToSend);
        }
    }
}

This post was edited on 02-19-2010 at 02:29 PM by matty.
02-18-2010 03:25 PM
Profile E-Mail PM Find Quote Report
Pages: (2): « First [ 1 ] 2 » 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