Volume slider keys F6 && F7

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.
 
F

Fabien

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 :
 
M

Mark Huisinga

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 :
 
G

Guest

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top