(Key press event origin) Is any key phisically pressed?

(Key press event origin) Is any key phisically pressed?

Post by Kt » Sat, 22 Jul 2006 15:12:29


Hi,

Is it possible to know whether a keyboard message is generated by a phisical
key press or an application. If possible, how?

Thanks in advance.
 
 
 

(Key press event origin) Is any key phisically pressed?

Post by chanm » Sat, 22 Jul 2006 19:08:59

Use KeyPress, KeyUp, KeyDown or PreviewKeyDown event.

chanmm

 
 
 

(Key press event origin) Is any key phisically pressed?

Post by Kt » Sat, 22 Jul 2006 19:19:27

are this events capable of saying whether a key message resulted by a
phisical key press or a software message?
 
 
 

(Key press event origin) Is any key phisically pressed?

Post by .NET/ C# » Sat, 22 Jul 2006 23:25:12

Hi,

I will doubt it, those events are fired when a message is received by the
message pump, the origin of it is not especified.

IMO there is no way to know for real if a key was pressed or ot


--
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation