CHAR Key Up and Key Down

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Jan 2008
Posts: 84
Reputation: VBNick is an unknown quantity at this point 
Solved Threads: 1
VBNick VBNick is offline Offline
Junior Poster in Training

CHAR Key Up and Key Down

 
0
  #1
Jan 11th, 2009
when a cursor key is pressed, WM_KEYDOWN is received, and when it is released, WM_KEYUP is received. How can I get this same functionality with a character key?

I found the messages WM_CHAR and WM_DEADCHAR, but they dont work like the above messages. Can anyone help?

Thanks, Nick
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 84
Reputation: VBNick is an unknown quantity at this point 
Solved Threads: 1
VBNick VBNick is offline Offline
Junior Poster in Training

Re: CHAR Key Up and Key Down

 
0
  #2
Jan 11th, 2009
actually, you know what? KEYUP and KEYDOWN DO catch letters, but it is registering 'w' && 'W' both as 'W'...only capital...anyone know why that is? or if I can change it?
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 670
Reputation: Freaky_Chris is a jewel in the rough Freaky_Chris is a jewel in the rough Freaky_Chris is a jewel in the rough 
Solved Threads: 113
Freaky_Chris's Avatar
Freaky_Chris Freaky_Chris is offline Offline
Practically a Master Poster

Re: CHAR Key Up and Key Down

 
0
  #3
Jan 11th, 2009
It's down to you to check the state of the shift key and caps locks. So i suggest you do that

Chris
Knowledge is power -- But experience is everything
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 84
Reputation: VBNick is an unknown quantity at this point 
Solved Threads: 1
VBNick VBNick is offline Offline
Junior Poster in Training

Re: CHAR Key Up and Key Down

 
0
  #4
Jan 11th, 2009
lol...okay, thanks =)
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC