Volume slider keys F6 && F7

  • Thread starter Thread starter Mark Huisinga
  • Start date Start date
M

Mark Huisinga

I'm developing an app for a Falcon psc with a keyboard and want to use the
function keys.
The F6 and F7 key are apparently used for Volume up/down. Is there a way to
change that so that I can trap these events in the Form OnKeyDown ?

thanx.
 
Hi,

You can send a message to the WndProc in order to simulate the keys F6
or F7 downed in your new key handler. See PostKeybdMessage or
keybd_event.

BR


Fabien Decret
Windows Embedded Consultant

ADENEO (ADESET)
http://www.adeneo.adetelgroup.com/



Mark Huisinga a écrit :
 
Hi,

I don't need to simulate these keys, they are on the actual device. But when
I press F6 the volume up gets triggered and I don't receive the F6 key in my
onKeyDown function.
Is there no way of doing this other then resorting to P/invoke's ? I'd like
to keep this in managed code.

Mark


"Fabien" <[email protected]> schreef in bericht
Hi,

You can send a message to the WndProc in order to simulate the keys F6
or F7 downed in your new key handler. See PostKeybdMessage or
keybd_event.

BR


Fabien Decret
Windows Embedded Consultant

ADENEO (ADESET)
http://www.adeneo.adetelgroup.com/



Mark Huisinga a écrit :
 
P/Invoke is managed code. How do you think all of the MS code talks with
the Win32 API?

For this specific problem you're probably going to have to ask the OEM, as
it's probably grabbing the keys at a layer below your app. They likely have
a mechanism to override or disable it.
 
Back
Top