RE: Entering messages
You don't need any hidden window and/or registering hotkeys or whatever if you use a normal keystroke like ALT+ENTER or CTRL+ENTER. You can catch such key strokes with OnEvent_ChatWndEditKeyDown().
As for trapping the ENTER key, that's another matter. This isn't that easy and would probably require some patching or other advanced technique.
There is also another way of doing it, but this is a bit dodgy and it wont always work (eg: the use of the command /all, I think). That is catching the send message with OnEvent_ChatWndSendMessage() and if it wasn't send from the OnEvent_ChatWndEditKeyDown() event cancelling the message. If it was send from OnEvent_ChatWndEditKeyDown() let the message through...
This post was edited on 07-19-2007 at 09:30 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
|