[?] WM_KEYUP - Printable Version -Shoutbox (https://shoutbox.menthix.net) +-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58) +--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4) +---- Forum: Scripting (/forumdisplay.php?fid=39) +----- Thread: [?] WM_KEYUP (/showthread.php?tid=85182) [?] WM_KEYUP by Spunky on 08-04-2008 at 02:43 PM
Has anyone got the decimal or hex number I need to register the notification of the KeyUp Event? I couldn't get it to work so I tested it with WM_PAINT (5) and it was working fine. RE: [?] WM_KEYUP by mynetx on 08-04-2008 at 02:48 PM
code: RE: [?] WM_KEYUP by foaly on 08-04-2008 at 02:49 PM WM_KEYUP 257 // 0x0101 RE: [?] WM_KEYUP by Spunky on 08-04-2008 at 02:50 PM
I did try 257 (0x101), but it didn't seem to work. I'm trying to detect arrow key press though, would it be the same message? RE: [?] WM_KEYUP by matty on 08-04-2008 at 02:53 PM
WM_KEYUP is 0x101 RE: [?] WM_KEYUP by Spunky on 08-04-2008 at 02:55 PM Ok, I'll have to give it another try when I get home from work RE: [?] WM_KEYUP by roflmao456 on 08-04-2008 at 03:45 PM
http://www.groupsrv.com/dotnet/about52848.html RE: [?] WM_KEYUP by Mnjul on 08-04-2008 at 03:48 PM Well, I am not sure (and could possibly be wrong!), but does your window you register for message notification has a child window (such as a control like a textbox) focused? I remember in this situation, the window itself won't process/receive WM_KEYUP. RE: [?] WM_KEYUP by Spunky on 08-04-2008 at 04:06 PM I'm not using a child window, I don't know about roflmao though RE: [?] WM_KEYUP by effection on 08-04-2008 at 05:38 PM the arrow keys are system keys afaik so you need the system key up message which i cant remember right now RE: [?] WM_KEYUP by Mnjul on 08-04-2008 at 05:52 PM
quote:Hmm, look at WM_SYSKEUP Notification (), it's interesting: quote: You might give it a try , I don't know if it works; I believe I have successfully intercepted WM_KEYUP with arrow keys when I coded some WndProc in C, like some years ago. RE: [?] WM_KEYUP by Spunky on 08-05-2008 at 08:47 PM
No joy yet... RE: [?] WM_KEYUP by CookieRevised on 08-05-2008 at 11:09 PM
quote:nope, you're not wrong... The WM_KEYUP message (and the likes) is send to the control, not to the window which you subclassed with PlusWnd::RegisterMessageNotification. If you want to catch this message you would need to subclass the control, not the parent window..... RE: [?] WM_KEYUP by matty on 08-06-2008 at 03:33 AM You can also try Registering these keys as hotkeys and unregistering them when the window loses the focus. |