Shoutbox

why isn't this working? - 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: why isn't this working? (/showthread.php?tid=70702)

why isn't this working? by Flaming Rob on 01-15-2007 at 07:01 AM

function_OnEventContact.Signin
Chatwnd.SendMessage "hi" {,chtwnd]
}
}

This is not working, could anybody tell me why?


RE: why isn't this working? by bigbob85 on 01-15-2007 at 07:28 AM

Many things are wrong with it...


code:
function OnEvent_ContactSignin(Email){
Messenger.OpenChat(Email).SendMessage("BigBob85 Rox0rz my Whorld!!!");
}

RE: why isn't this working? by markee on 01-15-2007 at 07:29 AM

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.
RE: why isn't this working? by Flaming Rob on 01-15-2007 at 07:30 AM

thanks


RE: why isn't this working? by bigbob85 on 01-15-2007 at 08:42 AM

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.


RE: why isn't this working? by Felu on 01-15-2007 at 09:49 AM

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.
RE: RE: why isn't this working? by markee on 01-15-2007 at 11:19 AM

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