Re: About universal keyboard control (hook ?)



If the system is locking up *because of the hook* (you didn't say that you'd
determined that with 100% certainty), then you're doing something wrong in
your hook code. I'd be more inclined to use RegisterHotKey() and a
background application to be notified of just the keys that affect the
volume, rather than having to see and process every single keyboard message
forever. That will certainly slow down the system.

Paul T.

"Calvin" <keep_fly@xxxxxxxxxxx> wrote in message
news:uJTWxrIPIHA.4272@xxxxxxxxxxxxxxxxxxxxxxx
Hello every body,

I want to use keyboard to control the volume when WinCE system started ,
no matter what program will run after , of course my app will run first
, Did HOOK app(dll) is the best choice ? Do I have another chocice ?

In most of time ,My hook is no problem at all , but sometimes system will
halt when use hook I found (espacilly when the app (map program )run for a
long time later ) . I don't know if the hook will bring some confilct with
current run program ?

By the way , my hook dll will pop up a dialog to show volume degree when
keyboard is press. thank you very much for you help or comment !


Best regrads,
Calvin Liu



.



Relevant Pages

  • RE: Problem Overriding Word menu items using VSTO 2005... Shortcuts no
    ... The code that you've implemented essentially allows you to hook the click ... event of the Paste button, however, using the CTRL+V keyboard shortcut to ... execute the paste would not execute the click event of the Paste menu item ... override the CTRL+V shortcut. ...
    (microsoft.public.vsnet.vstools.office)
  • Re: Intellectual Property Protection
    ... I can just pop up the character map (or any other onscreen keyboard) and type whatever I want. ... It seems to me that what I should do is hook the keyboard, ... and compare it to a database of copyrighted works. ... Blanking one makes the use compliant with the license. ...
    (microsoft.public.development.device.drivers)
  • Re: Hook Api
    ... Here's an implementation of a Keyboard hook. ... Public Function KeyboardProc(ByVal nCode As Long, ... Friend Sub KeyHandler(ByVal nCode As Long, ...
    (microsoft.public.vb.winapi)
  • Re: WH_KEYBOARD_LL not capture all key events
    ... I use a global hook because I think there is ... the only way to capture all keyboard input events. ... Thank you very much Paul, ...
    (microsoft.public.windowsce.app.development)
  • Re: Hooks
    ... If you've declared the hook procedure as you have, ... the pointer before passing it to SetWindowsHookEx(). ... If you tell us, again, why you are trying to capture all mouse and keyboard ... > write these types of drivers? ...
    (microsoft.public.windowsce.embedded.vc)

Loading