quote:
Originally posted by Mattike
code:
ChatWnd.SendMessage("/close");
That'll only work if the typing area is active, think of doing this when you've blocked that contact...
code:
Interop.Call('user32', 'SendMessageW', ChatWnd.Handle, 0x0010/*WM_CLOSE*/, 0, 0);
That's the best thing you can do.
There are a lot of other API's you can use.
DestroyWindow - Not the best or even recommended solution.
PostMessageW with WM_CLOSE message
quote:
Originally posted by Mattike
[OFFTOPIC] @Matty: place your [s][/s] tags in your code block. [/OFFTOPIC]
It works fine in IE6 which is what I was using at work at the time.