What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » why isn't this working?

why isn't this working?
Author: Message:
Flaming Rob
Junior Member
**

Avatar

Posts: 43
Reputation: 2
Joined: Dec 2006
O.P. why isn't this working?
function_OnEventContact.Signin
Chatwnd.SendMessage "hi" {,chtwnd]
}
}

This is not working, could anybody tell me why?
[Image: robsigfw2.png]
01-15-2007 07:01 AM
Profile E-Mail PM Find Quote Report
bigbob85
Full Member
***

Avatar
Is Good, Is Bob...

Posts: 128
Reputation: 4
37 / Male / Flag
Joined: Jul 2003
RE: why isn't this working?
Many things are wrong with it...


code:
function OnEvent_ContactSignin(Email){
Messenger.OpenChat(Email).SendMessage("BigBob85 Rox0rz my Whorld!!!");
}
01-15-2007 07:28 AM
Profile E-Mail PM Web Find Quote Report
markee
Veteran Member
*****

Avatar

Posts: 1622
Reputation: 50
36 / Male / Flag
Joined: Jan 2006
RE: why isn't this working?
Your syntax isn't correct (the way in which everything is ordered).  What you are after is this.
code:
function OnEvent_ContactSignin(Email){// when someone signs in...
var ChatWnd = Messenger.OpenChat(Email); // open a chat window with the contact
ChatWnd.SendMessage("hi"); // send a message to all people in the new chat
}//finish by completing all the barckets
This code will only work if you don't already have a chat window already open with the contact.
[Image: markee.png]
01-15-2007 07:29 AM
Profile PM Find Quote Report
Flaming Rob
Junior Member
**

Avatar

Posts: 43
Reputation: 2
Joined: Dec 2006
O.P. RE: why isn't this working?
thanks
[Image: robsigfw2.png]
01-15-2007 07:30 AM
Profile E-Mail PM Find Quote Report
bigbob85
Full Member
***

Avatar
Is Good, Is Bob...

Posts: 128
Reputation: 4
37 / Male / Flag
Joined: Jul 2003
RE: why isn't this working?
markee, code was working fine for me. I don't think it matters if the window is open or not.

Sorry for not describing the stuff Flaming Rob, was in a rush.
01-15-2007 08:42 AM
Profile E-Mail PM Web Find Quote Report
Felu
Veteran Member
*****


Posts: 2223
Reputation: 72
30 / Male / Flag
Joined: Apr 2006
Status: Away
RE: why isn't this working?
quote:
Originally posted by bigbob85
markee, code was working fine for me. I don't think it matters if the window is open or not.

Sorry for not describing the stuff Flaming Rob, was in a rush.
I guess he meant that for Flaming Rog and not you. There is only one minute difference between yours and markee's post.
01-15-2007 09:49 AM
Profile E-Mail PM Web Find Quote Report
markee
Veteran Member
*****

Avatar

Posts: 1622
Reputation: 50
36 / Male / Flag
Joined: Jan 2006
RE: RE: why isn't this working?
quote:
Originally posted by Felu
quote:
Originally posted by bigbob85
markee, code was working fine for me. I don't think it matters if the window is open or not.

Sorry for not describing the stuff Flaming Rob, was in a rush.
I guess he meant that for Flaming Rog and not you. There is only one minute difference between yours and markee's post.

Thanks Felu, exactly the point.  I saw yours there bigbob85 but I decided to keep mine for the explaination (even though your's is the better code because of the condensing of the script).
[Image: markee.png]
01-15-2007 11:19 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