Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Newsgroup Archive
Microsoft Office
Developer Add-ins
Keyboard event handler to ignore repeated key_down, key_up
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="g62msdnatll, post: 6917122"] I compiled the code with the modifications I mentioned earlier, and here's my output: Log,Comment,Tuesday June 21 2005,8:59:55.244,0x22216705 Log,Comment,Tuesday June 21 2005,8:59:55.244,Keycode False repeat 1 Log,Comment,Tuesday June 21 2005,8:59:55.244,bitvector section to string 1 Log,Comment,Tuesday June 21 2005,8:59:55.244,0x40000000 False Log,Comment,Tuesday June 21 2005,8:59:55.244,0x80000000 False Event,Keyboard_Delete,Tuesday June 21 2005,8:59:55.244 Log,Comment,Tuesday June 21 2005,8:59:55.254,0x22216705 Log,Comment,Tuesday June 21 2005,8:59:55.254,Keycode False repeat 1 Log,Comment,Tuesday June 21 2005,8:59:55.254,bitvector section to string 1 Log,Comment,Tuesday June 21 2005,8:59:55.254,0x40000000 False Log,Comment,Tuesday June 21 2005,8:59:55.254,0x80000000 False Event,Keyboard_Delete,Tuesday June 21 2005,8:59:55.254 Log,Comment,Tuesday June 21 2005,8:59:55.254,0x22216705 Log,Comment,Tuesday June 21 2005,8:59:55.254,Keycode False repeat 1 Log,Comment,Tuesday June 21 2005,8:59:55.254,bitvector section to string 1 Log,Comment,Tuesday June 21 2005,8:59:55.254,0x40000000 False Log,Comment,Tuesday June 21 2005,8:59:55.254,0x80000000 False Event,Keyboard_Delete,Tuesday June 21 2005,8:59:55.254 Log,Comment,Tuesday June 21 2005,8:59:55.254,0x22216705 Log,Comment,Tuesday June 21 2005,8:59:55.254,Keycode False repeat 1 Log,Comment,Tuesday June 21 2005,8:59:55.254,bitvector section to string 1 Log,Comment,Tuesday June 21 2005,8:59:55.254,0x40000000 False Log,Comment,Tuesday June 21 2005,8:59:55.254,0x80000000 False Event,Keyboard_Delete,Tuesday June 21 2005,8:59:55.254 Log,Comment,Tuesday June 21 2005,8:59:55.394,0x-1051525119 Log,Comment,Tuesday June 21 2005,8:59:55.404,Keycode False repeat 1 Log,Comment,Tuesday June 21 2005,8:59:55.414,bitvector section to string 1 Log,Comment,Tuesday June 21 2005,8:59:55.414,0x40000000 True Log,Comment,Tuesday June 21 2005,8:59:55.424,0x80000000 True Event,Keyboard_Delete,Tuesday June 21 2005,8:59:55.434 Log,Comment,Tuesday June 21 2005,8:59:55.444,0x-1051525119 Log,Comment,Tuesday June 21 2005,8:59:55.454,Keycode False repeat 1 Log,Comment,Tuesday June 21 2005,8:59:55.464,bitvector section to string 1 Log,Comment,Tuesday June 21 2005,8:59:55.474,0x40000000 True Log,Comment,Tuesday June 21 2005,8:59:55.474,0x80000000 True Event,Keyboard_Delete,Tuesday June 21 2005,8:59:55.484 Log,Comment,Tuesday June 21 2005,8:59:55.494,0x-1051525119 Log,Comment,Tuesday June 21 2005,8:59:55.504,Keycode False repeat 1 Log,Comment,Tuesday June 21 2005,8:59:55.504,bitvector section to string 1 Log,Comment,Tuesday June 21 2005,8:59:55.504,0x40000000 True Log,Comment,Tuesday June 21 2005,8:59:55.504,0x80000000 True Event,Keyboard_Delete,Tuesday June 21 2005,8:59:55.504 Log,Comment,Tuesday June 21 2005,8:59:55.504,0x-1051525119 Log,Comment,Tuesday June 21 2005,8:59:55.504,Keycode False repeat 1 Log,Comment,Tuesday June 21 2005,8:59:55.504,bitvector section to string 1 Log,Comment,Tuesday June 21 2005,8:59:55.504,0x40000000 True Log,Comment,Tuesday June 21 2005,8:59:55.504,0x80000000 True PROBLEM: Whatever 0x40000000 and 0x80000000 represent, I'm still getting a series of false values during the key_down event, and a series of True during the key_up. What I want to do is log ONE single event for this set up key_up and key_down, but no matter what I filter out, I'm still getting repeats. Is there something wrong with my implementation of MyCallbackFunction?? I return CallNextHookEx in the same places that you do. (I tried returning a non-zero value, and managed to get a single keyboard event, but the event did not propagate to Outlook for processing). [/QUOTE]
Verification
Post reply
Forums
Archive
Newsgroup Archive
Microsoft Office
Developer Add-ins
Keyboard event handler to ignore repeated key_down, key_up
Top