quote:
Originally posted by Mattike
Why do you want to return something anyway? The scripting documentation says it doesn't need a return value for the OnWndEvent_CtrlClicked event, so why would you?
because if one of the options is clicked in the xml windows then the message is send otherwise it isn't
quote:
Originally posted by Mattike
where did you define that ChatWnd variable?
in a function OnEvent_ChatWndSendMessage(ChatWnd, Message){ before the code I posted above
quote:
Originally posted by Mattike
And also, do you have anything in your debugging window?
I'm pretty sure I didn't before but now it does say that 'ChatWnd' is undefined, but only on the lines where I re-enable it
. By the looks of it if I get that bit fixed then the whole thing should work
.