PC Review


Reply
Thread Tools Rate Thread

Button Capture with No KEYUP

 
 
joe.radjavitch@gmail.com
Guest
Posts: n/a
 
      16th Feb 2009
Hello,
I have a .NET CF Application where I am trying to capture the PTT
press and release for a WM6 device (Treo Pro and AT&T Tilt).

I have WndProc defined in my form and I put a breakpoint when I
switch
on the message.

When I press and hold the PTT buttton, I receive the following
messages:

msg: 0xD (WM_GETTEXT)
wParam: 0xID

then:
msg: 0x101 (WM_KEYUP)
wParam: 0xc6

When I release the PTT button, I receive the following messages:
msg: 0xD (WM_GETTEXT)
wParam: 0x1D

Why am I getting an WM_KEYUP when the button is still pressed?

Thanks,
JR
 
Reply With Quote
 
 
 
 
Peter Foot
Guest
Posts: n/a
 
      18th Feb 2009
This is the way that most of the hardware keys are implemented - they don't
generate separate keydown/keyup events. You'll find also that devices where
a single button has two functions e.g. short press and long press that a
long press will result in a single keyup event for the secondary function.

Peter

<(E-Mail Removed)> wrote in message
news:76d82c95-c697-4a68-9b75-(E-Mail Removed)...
> Hello,
> I have a .NET CF Application where I am trying to capture the PTT
> press and release for a WM6 device (Treo Pro and AT&T Tilt).
>
> I have WndProc defined in my form and I put a breakpoint when I
> switch
> on the message.
>
> When I press and hold the PTT buttton, I receive the following
> messages:
>
> msg: 0xD (WM_GETTEXT)
> wParam: 0xID
>
> then:
> msg: 0x101 (WM_KEYUP)
> wParam: 0xc6
>
> When I release the PTT button, I receive the following messages:
> msg: 0xD (WM_GETTEXT)
> wParam: 0x1D
>
> Why am I getting an WM_KEYUP when the button is still pressed?
>
> Thanks,
> JR


 
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hardware button sends keyup on keydown Magnus Bergh Microsoft Dot NET Compact Framework 0 4th Jun 2007 12:34 PM
Capture button name or row # during click? robotman Microsoft Excel Programming 2 10th May 2007 12:52 AM
Where's the capture video button for ATI? =?Utf-8?B?YWxsIGluIHdvbmRlcg==?= Windows XP Video 1 14th Feb 2006 06:21 PM
Re: Capture a cancel button Norman Jones Microsoft Excel Programming 3 6th Sep 2005 05:58 AM
How to capture a hotkey's KeyUP event? =?Utf-8?B?SmVseQ==?= Microsoft Dot NET Compact Framework 0 6th Aug 2004 08:55 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:32 PM.