What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Is this possible to make?

Pages: (2): « First [ 1 ] 2 » Last »
Is this possible to make?
Author: Message:
Barathrum
Junior Member
**

Avatar
.......................

Posts: 42
30 / Male / Flag
Joined: Nov 2009
O.P. Wink  Is this possible to make?
Is it possible to make a Messenger Script that everytime any contact on my friend list would sign into messenger, it would open a chat window and say "Hello :)" and if possible then close that chat window, but this part doesn't matter.

Thank you for answering :)
02-28-2010 04:53 PM
Profile E-Mail PM Find Quote Report
Felu
Veteran Member
*****


Posts: 2223
Reputation: 72
29 / Male / Flag
Joined: Apr 2006
Status: Away
RE: Is this possible to make?
Yes, I believe it would be fairly easy to do.
02-28-2010 04:56 PM
Profile E-Mail PM Web Find Quote Report
billyy
Full Member
***

Avatar

Posts: 103
Reputation: 1
36 / Male / Flag
Joined: Feb 2010
Status: Away
RE: Is this possible to make?
Yeah it's possible and fairly easy :P

JScript code:
function OnEvent_ContactSignin(email)
{
     /* Open a chat window */
     var Chat = Messenger.OpenChat(email);
 
     /* Say herraw */
     Chat.SendMessage("Hello :)");
 
     /* Close it */
     Chat.SendMessage("/close");
}


Actually it is as simple as that!

This post was edited on 02-28-2010 at 06:45 PM by billyy.
I'm new at this, so don't expect me to be usefull any
time soon. But if i behaved you could rep me :P
02-28-2010 05:45 PM
Profile E-Mail PM Find Quote Report
roflmao456
Skinning Contest Winner
****

Avatar

Posts: 955
Reputation: 24
29 / Male / Flag
Joined: Nov 2006
Status: Away
RE: Is this possible to make?
JScript code:
function OnEvent_ContactSignin(Email){
    var ChatWnd = Messenger.OpenChat(Email);
    if(ChatWnd.EditChangeAllowed){
        /* Send the message */
        ChatWnd.SendMessage("Hello :)");
   
        /* Close the ChatWnd */
        ChatWnd.SendMessage("/close");
        }
    /* Commented since this causes "we were unable to start conversation" error. (timer needed?) */
    //Interop.Call("user32", "SendMessageW", ChatWnd.Handle, 0x10, 0, 0);
    }


damn it billy :P

This post was edited on 03-01-2010 at 01:01 AM by roflmao456.
[quote]
Ultimatess6
: What a noob mod
02-28-2010 05:55 PM
Profile PM Web Find Quote Report
billyy
Full Member
***

Avatar

Posts: 103
Reputation: 1
36 / Male / Flag
Joined: Feb 2010
Status: Away
RE: Is this possible to make?
Ah but you close the window so it's better anyway :P

edit:
Now mine does too (6)

This post was edited on 02-28-2010 at 06:04 PM by billyy.
I'm new at this, so don't expect me to be usefull any
time soon. But if i behaved you could rep me :P
02-28-2010 05:57 PM
Profile E-Mail PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Is this possible to make?
Mind you that such scripts are extremely annoying!

If you do not want to be blocked in no time, then I very strongly encourage to not use such scripts.

Such a script/question pops up now and then, and each and every time people complain about it and the script dies quickly.

----------------------

PS: billy, roflmao456, before you use SendMessage() you best check if you can actually send the message. See the Plus! Scripting Documentation.

This post was edited on 02-28-2010 at 06:58 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
02-28-2010 06:37 PM
Profile PM Find Quote Report
Felu
Veteran Member
*****


Posts: 2223
Reputation: 72
29 / Male / Flag
Joined: Apr 2006
Status: Away
RE: Is this possible to make?
Not to mention that if somebody has a connection problem, and signs-in and out often, would keep on getting the message again and again.
02-28-2010 06:39 PM
Profile E-Mail PM Web Find Quote Report
billyy
Full Member
***

Avatar

Posts: 103
Reputation: 1
36 / Male / Flag
Joined: Feb 2010
Status: Away
RE: Is this possible to make?
Yeah i know felu :/

Ok i edited the script according to what cookie said and added something you might like also i could add like a function that makes it choose from a list of hellos and all.
But it IS true it MIGHT be anoying and people MIGHT start blocking you.

JScript code:
function OnEvent_ContactSignin(email)
{
     if(Messenger.MyStatus != 2)
     {
          /* Open a chat window */
          var Chat = Messenger.OpenChat(email);
         
          if(Chat.EditChangeAllowed == true)
          {
         
               /* Say herraw */
               Chat.SendMessage("Hello :)");
     
               /* What if you are busy? */
               if(Messenger.MyStatus == 4)
               {
                    Chat.SendMessage("I'm busy right now but I noticed you got online, gimme a sec!");
               }
               /* What if you will brb? */
               else if(Messenger.MyStatus == 5)
               {
                    Chat.SendMessage("Oh dang, brb!");
               }
               /* What if you are idle? */
               else if(Messenger.MyStatus == 6)
               {
                    Chat.SendMessage("Oh dang, sorry i gtg for a second...");
               }
               /* What if you are away? */
               else if(Messenger.MyStatus == 7)
               {
                    Chat.SendMessage("Oh dang i got to go! Sorry ill be back in a few...");
               }
               /* What if you are in a call? */
               else if(Messenger.MyStatus == 8)
               {
                    Chat.SendMessage("Oh brb phone!");
               }
               /* What if you are eating */
               else if(Messenger.MyStatus == 9)
               {
                    Chat.SendMessage("Oh brb got to eat!");
               }
         
               /* Close it */
               Chat.SendMessage("/close");
          }
     }
}


Off-Topic:
But w/e i'm off repping people :D

Edit:
Banned from repping people... ahw **** [Image: dodgy.gif]

This post was edited on 02-28-2010 at 08:35 PM by billyy.
I'm new at this, so don't expect me to be usefull any
time soon. But if i behaved you could rep me :P
02-28-2010 06:47 PM
Profile E-Mail PM Find Quote Report
foaly
Senior Member
****

Avatar

Posts: 718
Reputation: 20
37 / Male / Flag
Joined: Jul 2006
RE: Is this possible to make?
quote:
Originally posted by billyy
Javascript code:
               else if(Messenger.MyStatus == 8)
               {
                    Chat.SendMessage("Oh brb phone!");
               }
               /* What if you are eating */
               else if(Messenger.MyStatus == 8)
               {
                    Chat.SendMessage("Oh brb got to eat!");
               }



Something tells me you'll never have to eat...

This post was edited on 02-28-2010 at 08:10 PM by foaly.
02-28-2010 08:09 PM
Profile E-Mail PM Find Quote Report
billyy
Full Member
***

Avatar

Posts: 103
Reputation: 1
36 / Male / Flag
Joined: Feb 2010
Status: Away
RE: Is this possible to make?
LOL thanks for that xD
I'm new at this, so don't expect me to be usefull any
time soon. But if i behaved you could rep me :P
02-28-2010 08:34 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