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

why won't this work
Author: Message:
Jimbo
Veteran Member
*****

Avatar

Posts: 1650
Reputation: 18
31 / Male / Flag
Joined: Jul 2006
O.P. why won't this work
why won't this work
code:
function OnEvent_ChatWndCreated()
}
ChatWndSendMessage ('hi')
{
{

I want it so that when a chat window is created it sends hi.
11-01-2006 08:35 PM
Profile E-Mail PM Find Quote Report
NanaFreak
Scripting Contest Winner
*****


Posts: 1476
Reputation: 53
32 / Male / Flag
Joined: Jul 2006
RE: why won't this work
try this you had you { } around the wrong ways
code:
function OnEvent_ChatWndCreated(ChatWnd){
  ChatWnd.SendMessage ('hi');
}


This post was edited on 11-01-2006 at 08:49 PM by NanaFreak.
11-01-2006 08:43 PM
Profile PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: why won't this work
Well firstly ChatWndSendMessage doesn't exist. Secondly your not defining ChatWnd at all.

code:
function OnEvent_ChatWndCreated(oChatWnd){
    oChatWnd.SendMessage('hi');
}

You know the Scripting Documentation works windows wonders right?

This post was edited on 11-01-2006 at 08:48 PM by matty.
11-01-2006 08:45 PM
Profile E-Mail PM Find Quote Report
Jimbo
Veteran Member
*****

Avatar

Posts: 1650
Reputation: 18
31 / Male / Flag
Joined: Jul 2006
O.P. RE: why won't this work
Thanks both of you. works now
11-02-2006 07:49 AM
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