Shoutbox

[reguest] log out script?? - 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: [reguest] log out script?? (/showthread.php?tid=68127)

[reguest] log out script?? by jamiewarne123 on 11-06-2006 at 06:43 PM

hi im wondering if there is such a script that says 'bye' to all your contacts when you log out of msn, if so can you post download link ot site link, thx in advance.


RE: [reguest] log out script?? by Matti on 11-06-2006 at 07:00 PM

Well, in theory this wouldn't be a very difficult script, you just have to send a message when the OnEvent_Signout event is triggered. But what do you mean with all contacts?

  • all online contacts on your list
  • all not-offline contacts on your list
  • all opened conversations at that moment

RE: [reguest] log out script?? by jamiewarne123 on 11-06-2006 at 07:06 PM

all online contacts, and how difficult would this be to code


RE: [reguest] log out script?? by elektra on 11-06-2006 at 07:07 PM

quote:
Originally posted by jamiewarne123
all online contacts, and how difficult would this be to code[/q]
I think it would be best for it to be all open chats, and it would be quite hard to code for every online contact

RE: [reguest] log out script?? by jamiewarne123 on 11-06-2006 at 07:11 PM

so have i come up with a good idea, i have no coding experience so any people willing to code this please go ahead.


RE: [reguest] log out script?? by Oxy on 11-06-2006 at 07:12 PM

quote:
Originally posted by penguindude
I think it would be best for it to be all open chats

Yes, because

1) smaterchild will get annoying sooner or later :P
2) people who you didn't talk to will think 'WTF'

I'm sure this shouldn't be too hard for someone to code, it should be somewhat similar to the script which when you type "brb" it will set status to Be right back.. but it might be easier to work with the /signout command rather than the other way..

see penguindude, i can use quote codes properly ;)
RE: [reguest] log out script?? by Ezra on 11-06-2006 at 07:13 PM

quote:
Originally posted by penguindude
quote:
Originally posted by jamiewarne123
all online contacts, and how difficult would this be to code
I think it would be best for it to be all open chats, and it would be quite hard to code for every online contact

You suck at quoting :P

About the script, if would be very easy to make, but I think it would also be very annoying to send a message to every online contact, it's better to send it to all opened windows. (I would block you if you sent me that message everytime you logged out :P)

code:
var Message = "Bye Bye";

function OnEvent_Signout(Email)
{
  for(e = new Enumerator(Messenger.CurrentChats); !e.atEnd(); e.moveNext())
  {
      if (e.item().EditChangeAllowed)
    {
      ChatWnd.SendMessage(Message);
    }
  }
}

Even this will get annoying...
RE: [reguest] log out script?? by jamiewarne123 on 11-06-2006 at 07:16 PM

ya that sounds better actually, send a custom message to all open windows when sgining out.


omg u finished it already
RE: [reguest] log out script?? by foaly on 11-06-2006 at 07:19 PM

quote:
Originally posted by Ezra

code:
var Message = "Bye Bye";

function OnEvent_Signout(Email)
{
  for(e = new Enumerator(Messenger.CurrentChats); !e.atEnd(); e.moveNext())
  {
   if (e.item().EditChangeAllowed)
    {
      ChatWnd.SendMessage(Message);
    }
  }
}

how can you send a message when you just signed out?

or do you stay signed in untill OnEvent_Signout is parsed?
RE: [reguest] log out script?? by jamiewarne123 on 11-06-2006 at 07:20 PM

just before u log out then

im am very suprised to how active this forum is, u are all very helpfull and quik at making scripts


RE: [reguest] log out script?? by matty on 11-06-2006 at 07:22 PM

quote:
Originally posted by Ezra
code:
var Message = "Bye Bye";

function OnEvent_Signout(Email)
{
  for(e = new Enumerator(Messenger.CurrentChats); !e.atEnd(); e.moveNext())
  {
   if (e.item().EditChangeAllowed)
    {
      ChatWnd.SendMessage(Message);
    }
  }
}

You Phail!

code:
var Message = "Bye Bye";

function OnEvent_Signout(Email) {
  for(e = new Enumerator(Messenger.CurrentChats); !e.atEnd(); e.moveNext()) {
   if (e.item().EditChangeAllowed) {
      e.item().SendMessage(Message);
    }
  }
}

quote:
Originally posted by jamiewarne123
just before u log out then
quote:
Originally posted by jamiewarne123
im am very suprised to how active this forum is, u are all very helpfull and quik at making scripts

Don't double post, if you need to make changes or add something use the edit button.

quote:
Originally posted by foaly
how can you send a message when you just signed out?

or do you stay signed in untill OnEvent_Signout is parsed?
This isn't going to work.
quote:
Originally posted by Excert from: [url
http://mpscripts.net/docs.php?p=ref-msgevents-signout.htm]The[/url] OnEvent_Signout event is fired when the current Messenger user signs-out.

Syntax
OnEvent_Signout(
    [string] Email
);
[/code]

RE: [reguest] log out script?? by jamiewarne123 on 11-06-2006 at 07:24 PM

i dont understand what one do i copy into a new script

would you be able to make it so i can import it please, make it an upload it, then i downlaod it and import


RE: [reguest] log out script?? by Ezra on 11-06-2006 at 07:25 PM

quote:
Originally posted by Matty
quote:
Originally posted by Ezra
code:
var Message = "Bye Bye";

function OnEvent_Signout(Email)
{
  for(e = new Enumerator(Messenger.CurrentChats); !e.atEnd(); e.moveNext())
  {
   if (e.item().EditChangeAllowed)
    {
      ChatWnd.SendMessage(Message);
    }
  }
}

You Phail!

code:
var Message = "Bye Bye";

function OnEvent_Signout(Email) {
  for(e = new Enumerator(Messenger.CurrentChats); !e.atEnd(); e.moveNext()) {
   if (e.item().EditChangeAllowed) {
      e.item().SendMessage(Message);
    }
  }
}


LOL

Anyway, as foaly said, it doesn't send the message anyway, OnEvent_Signout only gets triggered after msn is signed out...
RE: [reguest] log out script?? by jamiewarne123 on 11-06-2006 at 07:26 PM

so this isnt posible??

couldnt u make it so when i click sign out it is delyed by 5 seconds so the message can be sent, then log you out


RE: [reguest] log out script?? by matty on 11-06-2006 at 07:29 PM

quote:
Originally posted by jamiewarne123
so this isnt posible??

couldnt u make it so when i click sign out it is delyed by 5 seconds so the message can be sent, then log you out
Easiest thing to do in this case is to make a QuickText. The first message sent would be to /all Bye Bye, the second message would be /signout

That is the only way possible.
RE: [reguest] log out script?? by Ezra on 11-06-2006 at 07:31 PM

This will be like the QuickText only fancier :P

code:
var ByeMessage = "Bye Bye";

function OnEvent_ChatWndSendMessage(ChatWnd, Message)

  if (Message.match(/^\/signmeout$/i) != null)
  {
    for(e = new Enumerator(Messenger.CurrentChats); !e.atEnd(); e.moveNext())
    {
      if (e.item().EditChangeAllowed)
      {
        e.item().SendMessage(ByeMessage);
        Messenger.Signout();
        return "";
      }
    }
  }
}

RE: [reguest] log out script?? by EBFL on 11-06-2006 at 07:33 PM

Lol?
You dont need a script,
Just Type, /all [text]


RE: [reguest] log out script?? by jamiewarne123 on 11-06-2006 at 07:45 PM

really is that /all [text]

wikid


RE: [reguest] log out script?? by pollolibredegrasa on 11-06-2006 at 08:05 PM

Meh, it's just a suggestion but if a script were made, then one possible idea is everytime you speak to a contact, add their email to an array (assuming they don't already exist in it of course.) You could then use whatever method to call a function that sends the message to all the users (still online) in that array before signing out.

This way at least you aren't sending messages to people you haven't spoken to, yet you can still close chat windows and be assured that those contacts will get your goodbye message...