Because you can not use ChatWnd.SendMessage() like that as I explained in my previous post.
Do as I suggested and place some Debug.Trace() lines here and there, you'll see that it does work, except for the mistakes I've pointed out....
Tip: also read the official scripting documentation in regards to the functions SendMessage, OpenChat, etc. It will help a lot.