What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Just need an example

Just need an example
Author: Message:
Robin4286
Junior Member
**


Posts: 21
Joined: Sep 2006
O.P. Just need an example
okay, so say I have a contact who has his name as Someone, his email is Someone@hotmail.com.

When I change my status, how would i open a chat window with him using plus script?


Edit: wow people take things too literally around here...no offense

This post was edited on 09-12-2006 at 10:05 PM by Robin4286.
09-12-2006 10:01 PM
Profile E-Mail PM Find Quote Report
Shondoit
Full Member
***

Avatar
Hmm, Just Me...

Posts: 227
Reputation: 15
36 / Male / Flag
Joined: Jul 2006
RE: Just need an example
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
My scripts:                            [Image: shondoit.gif]
+ Timezone
+ Camelo
+ Multisearch
09-12-2006 10:06 PM
Profile PM Find Quote Report
NanaFreak
Scripting Contest Winner
*****


Posts: 1476
Reputation: 53
32 / Male / Flag
Joined: Jul 2006
RE: Just need an example
here put this into where you want it to be in the script
code:
Messenger.OpenChat('Someone@hotmail.com')
hope this helps

EDIT beaten again :'(

This post was edited on 09-12-2006 at 10:08 PM by NanaFreak.
09-12-2006 10:08 PM
Profile PM Find Quote Report
Robin4286
Junior Member
**


Posts: 21
Joined: Sep 2006
O.P. RE: Just need an example
Thanks to both of you!

and mentality for teaching me the error of not seeing every possible loophole of my text


Edit: okay just a few more questions:


How do you(can you?) send a nudge through messenger plus script?
How do you(can you?) send a message through messenger plus script?

Sorry guys, but the documentation really dosent seem to be doing me much good...

This post was edited on 09-12-2006 at 10:14 PM by Robin4286.
09-12-2006 10:09 PM
Profile E-Mail PM Find Quote Report
Shondoit
Full Member
***

Avatar
Hmm, Just Me...

Posts: 227
Reputation: 15
36 / Male / Flag
Joined: Jul 2006
RE: Just need an example
Open a new Chatwindow with 'var ChatWnd = Messenger.OpenChat(Contact)'
and then use 'ChatWnd.SendMessage("Message")'

As for the nudge, it is possible with an API call to SendMessage
Don't know exactly how though
My scripts:                            [Image: shondoit.gif]
+ Timezone
+ Camelo
+ Multisearch
09-12-2006 10:18 PM
Profile PM Find Quote Report
alexp2_ad
Scripting Contest Winner
****

Avatar
Who love the chocolate?

Posts: 691
Reputation: 26
37 / Male / –
Joined: May 2004
Status: Away
RE: RE: Just need an example
No need for an API call, just use ChatWnd.SendMessage("/nudge");
09-12-2006 10:19 PM
Profile E-Mail PM Find Quote Report
Shondoit
Full Member
***

Avatar
Hmm, Just Me...

Posts: 227
Reputation: 15
36 / Male / Flag
Joined: Jul 2006
RE: Just need an example
Ha, right
totally forgot about that... (y)
My scripts:                            [Image: shondoit.gif]
+ Timezone
+ Camelo
+ Multisearch
09-12-2006 10:20 PM
Profile PM Find Quote Report
Mentality
Full Member
***

Avatar
The Best Representation OF me IS ME!

Posts: 490
Reputation: 19
39 / Male / Flag
Joined: Jun 2005
RE: Just need an example
quote:
Originally posted by Robin4286
and mentality for teaching me the error of not seeing every possible loophole of my text

Always happy to help :D
09-12-2006 10:28 PM
Profile E-Mail 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