I ran the (revised) code.. and I got
The automatic chatwnd opening should have been in the Initialize event btw. That's why Chrissy's debug log doesn't have the function called
code:
Script is starting
Script is now loaded and ready
Function called: OnEvent_ChatWndCreated
Error: unknown (code: -2147467259)
File: test.js. Line: 20.
Function OnEvent_ChatWndCreated returned an error. Code: -2147352567
Line 20 being the debug.trace
edit: Tried the original code.. no output