What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » /invite not initiating OnEvent_ChatWndContactAdded?

/invite not initiating OnEvent_ChatWndContactAdded?
Author: Message:
Robin4286
Junior Member
**


Posts: 21
Joined: Sep 2006
O.P. /invite not initiating OnEvent_ChatWndContactAdded?
It seems that sending /invite using scripts only activates OnEvent_ChatWndContactAdded some of the time. Is there a method to get it to work all of the time using scripts(aka an alternate method to add contacts using scripts)?

Edit: Also, if anyone can help me with how to use timers that would be great too!

This post was edited on 09-12-2006 at 11:42 PM by Robin4286.
09-12-2006 11:24 PM
Profile E-Mail PM Find Quote Report
deAd
Scripting Contest Winner
*****

Avatar

Posts: 1060
Reputation: 28
– / Male / Flag
Joined: Jan 2006
RE: /invite not initiating OnEvent_ChatWndContactAdded?
There is not an alternate method. However, after you send the /invite command, you can actually "throw" the event yourself. You'll need to pass all the proper parameters, but you should have access to all those when you invite the contact. The OnEvent_ChatWndContactAdded should be executed like a normal function, because that's all it is.
09-13-2006 12:02 AM
Profile PM Find Quote Report
Robin4286
Junior Member
**


Posts: 21
Joined: Sep 2006
O.P. RE: /invite not initiating OnEvent_ChatWndContactAdded?
Hmmmmm well in that case i think i need to know how to use timers then. Can anyone help with this?
09-13-2006 12:10 AM
Profile E-Mail PM Find Quote Report
NanaFreak
Scripting Contest Winner
*****


Posts: 1476
Reputation: 53
32 / Male / Flag
Joined: Jul 2006
RE: /invite not initiating OnEvent_ChatWndContactAdded?
learn from the scripting documentation its easy
09-13-2006 12:13 AM
Profile PM Find Quote Report
deAd
Scripting Contest Winner
*****

Avatar

Posts: 1060
Reputation: 28
– / Male / Flag
Joined: Jan 2006
RE: /invite not initiating OnEvent_ChatWndContactAdded?
Yes, the documentation is your friend. Timers are extremely simple and straight-forward.

How would a timer help you get an event called anyways?
09-13-2006 12:15 AM
Profile PM Find Quote Report
Robin4286
Junior Member
**


Posts: 21
Joined: Sep 2006
O.P. RE: /invite not initiating OnEvent_ChatWndContactAdded?
okay, got timers to work, didn't know you needed to put a MsgPlus. next to it. The documentation should be more clear.

Anyways is there a way to close an open chat window using scripts?
09-13-2006 12:28 AM
Profile E-Mail PM Find Quote Report
NanaFreak
Scripting Contest Winner
*****


Posts: 1476
Reputation: 53
32 / Male / Flag
Joined: Jul 2006
RE: /invite not initiating OnEvent_ChatWndContactAdded?
quote:
Originally posted by Shondoit
D'oh, what a remark Mentality :S

code:
var Email = "user@provider.com"

function OnEvent_MyStatusChange (NewStatus) {
   Contact = Messenger.MyContacts.GetContact(Email)
   Messenger.OpenChat(Contact)
}
Different status codes:
2 - Appear Offline
3 - Online
4 - Busy
5 - Be Right Back
6 - Idle
7 - Away
8 - In a Call
9 - Out to Lunch
this might help for opening

will edit with close

close:
code:
ChatWnd.SendMessage('/close');

This post was edited on 09-13-2006 at 12:33 AM by NanaFreak.
09-13-2006 12:31 AM
Profile PM Find Quote Report
markee
Veteran Member
*****

Avatar

Posts: 1621
Reputation: 50
35 / Male / Flag
Joined: Jan 2006
RE: RE: /invite not initiating OnEvent_ChatWndContactAdded?
quote:
Originally posted by Jay_Jay
quote:
Originally posted by Shondoit
D'oh, what a remark Mentality :S

code:
var Email = "user@provider.com"

function OnEvent_MyStatusChange (NewStatus) {
   Contact = Messenger.MyContacts.GetContact(Email)
   Messenger.OpenChat(Contact)
}
Different status codes:
2 - Appear Offline
3 - Online
4 - Busy
5 - Be Right Back
6 - Idle
7 - Away
8 - In a Call
9 - Out to Lunch
this might help for opening

will edit with close

close:
code:
ChatWnd.SendMessage('/close');


quote:
Originally posted by CookieRevised in [url=http://shoutbox.menthix.net/showthread.php?tid=65322
Script Request - Ignore specific contacts[/url]]    code:ChatWnd.SendMessage("/close")

Use the sendmessage api to close the window. This is better because you don't need to send a message to the conversation in that way (for various reasons you wont always be able to send a message to the conversation).

If you can, try using the API instead (though /close will work for now until you are a more advanced scripter).
[Image: markee.png]
09-13-2006 01:18 AM
Profile PM Find Quote Report
« 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