Shoutbox

Just need an example - 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: Just need an example (/showthread.php?tid=66153)

Just need an example by Robin4286 on 09-12-2006 at 10:01 PM

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


RE: Just need an example by Shondoit on 09-12-2006 at 10:06 PM

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
RE: Just need an example by NanaFreak on 09-12-2006 at 10:08 PM

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 :'(
RE: Just need an example by Robin4286 on 09-12-2006 at 10:09 PM

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...


RE: Just need an example by Shondoit on 09-12-2006 at 10:18 PM

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


RE: RE: Just need an example by alexp2_ad on 09-12-2006 at 10:19 PM

No need for an API call, just use ChatWnd.SendMessage("/nudge");


RE: Just need an example by Shondoit on 09-12-2006 at 10:20 PM

Ha, right
totally forgot about that... (y)


RE: Just need an example by Mentality on 09-12-2006 at 10:28 PM

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