PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Compact Framework Volume slider keys F6 && F7

Reply

Volume slider keys F6 && F7

 
Thread Tools Rate Thread
Old 07-09-2006, 07:45 AM   #1
Mark Huisinga
Guest
 
Posts: n/a
Default Volume slider keys F6 && F7


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.


  Reply With Quote
Old 07-09-2006, 08:48 AM   #2
Fabien
Guest
 
Posts: n/a
Default Re: Volume slider keys F6 && F7

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 :

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


  Reply With Quote
Old 07-09-2006, 12:25 PM   #3
Mark Huisinga
Guest
 
Posts: n/a
Default Re: Volume slider keys F6 && F7

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" <fab_00_2002@msn.com> schreef in bericht
news:1157615289.936334.230830@p79g2000cwp.googlegroups.com...
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 :

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



  Reply With Quote
Old 07-09-2006, 12:50 PM   #4
Guest
 
Posts: n/a
Default Re: Volume slider keys F6 && F7

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.


--
Chris Tacke
OpenNETCF Consulting
Managed Code in the Embedded World
www.opennetcf.com
--



"Mark Huisinga" <mhuisinga@newsgroups.nospam> wrote in message
news:ilTLg.544912$8o6.119569@beryl...
> 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" <fab_00_2002@msn.com> schreef in bericht
> news:1157615289.936334.230830@p79g2000cwp.googlegroups.com...
> 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 :
>
>> 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.

>
>



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off