Is this possible to make? |
Author: |
Message: |
Barathrum
Junior Member
.......................
Posts: 42
30 / /
Joined: Nov 2009
|
O.P. 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 |
|
|
Felu
Veteran Member
Posts: 2223 Reputation: 72
30 / /
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 |
|
|
billyy
Full Member
Posts: 103 Reputation: 1
37 / /
Joined: Feb 2010
Status: Away
|
RE: Is this possible to make?
Yeah it's possible and fairly easy
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
|
|
02-28-2010 05:45 PM |
|
|
roflmao456
Skinning Contest Winner
Posts: 955 Reputation: 24
30 / /
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
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 |
|
|
billyy
Full Member
Posts: 103 Reputation: 1
37 / /
Joined: Feb 2010
Status: Away
|
RE: Is this possible to make?
Ah but you close the window so it's better anyway
edit:
Now mine does too
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
|
|
02-28-2010 05:57 PM |
|
|
CookieRevised
Elite Member
Posts: 15517 Reputation: 173
– / /
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 |
|
|
Felu
Veteran Member
Posts: 2223 Reputation: 72
30 / /
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 |
|
|
billyy
Full Member
Posts: 103 Reputation: 1
37 / /
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
Edit:
Banned from repping people... ahw ****
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
|
|
02-28-2010 06:47 PM |
|
|
foaly
Senior Member
Posts: 718 Reputation: 20
38 / /
Joined: Jul 2006
|
RE: Is this possible to make?
quote: Originally posted by billyy
js 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 |
|
|
billyy
Full Member
Posts: 103 Reputation: 1
37 / /
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
|
|
02-28-2010 08:34 PM |
|
|
Pages: (2):
« First
[ 1 ]
2
»
Last »
|
|