What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » WLM Plus! General » Entering messages

Entering messages
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: RE: Entering messages
quote:
Originally posted by markee
Firstly, I'm sorry Cookie for not remembering that event in the first instance.  I just remembered another time when someone wanted a hot key and had to use that method.  But I do have a question to propose....

Is there a reason why Plus! does not trigger OnEvent_ChatWndEditKeyDown() when either ENTER or SHIFT+ENTER is pressed?
I think it is done on purpose, though I can be wrong completely (but I actually can't imagine he wouldn't be able to catch the ENTER key). So, dunno really, you should ask this to Patchou...

What I do know (and what you can read in the docs also) is that he uses a hook on the WM_KEYDOWN Window message to detect keystrokes. And most likely also WM_CHAR...
VK_RETURN (virtual keycode constant for the ENTER key) is nicely detected with those Windows message. This means, when you hook the chatwindow yourself, you could detect the WM_KEYDOWN or WM_CHAR message and look for VK_RETURN... Which is probably the best method to do all this as it is 100% reliable. But this also requires an external dll for hooking the chat window. (or... or... or... I think it can be done with only pure scripting, though I need to experiment with this first to confirm it or not though).

This said, the reason why CTRL+ENTER triggers the event is because CTRL+ENTER actually equals an ascii character: 0x10, whereas SHIFT+ENTER is just the same ascii character as only ENTER: 0x0D, which is 'ignored'.

quote:
Originally posted by markee
It is not like it would even effect the use of selecting a command from Plus!'s command box either because those keypresses aren't detected (which is understandable and how it should react).  And furthermore it would not effect the use of the likes of the /all command either because it is only nullifying the use of the ENTER key.
The thing I said in regards to this is if you use the second method I described: the 'dodgy' method to catch a ENTER key by using OnEvent_ChatWndEditKeyDown() together with OnEvent_ChatWndSendMessage. In that case, it would effect commands and especially a command like /all because the actual message being send is different than the one you pressed ENTER on; you actually didn't entered the message send to other conversations. Hard to explain, but I cba to make an example script to show what I mean :p

This post was edited on 07-21-2007 at 09:59 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
07-19-2007 09:39 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Entering messages - by fayte7523 on 07-18-2007 at 09:43 AM
RE: Entering messages - by ... on 07-18-2007 at 12:39 PM
RE: Entering messages - by fayte7523 on 07-18-2007 at 09:07 PM
RE: Entering messages - by markee on 07-19-2007 at 02:38 AM
RE: Entering messages - by CookieRevised on 07-19-2007 at 09:41 AM
RE: Entering messages - by markee on 07-19-2007 at 01:25 PM
RE: RE: Entering messages - by CookieRevised on 07-19-2007 at 09:39 PM
RE: Entering messages - by foaly on 07-19-2007 at 03:42 PM
RE: RE: Entering messages - by Ezra on 07-19-2007 at 03:46 PM
RE: RE: Entering messages - by fayte7523 on 07-21-2007 at 04:14 AM
RE: Entering messages - by foaly on 07-21-2007 at 10:03 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On