473,408 Members | 2,839 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

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

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.
Jul 21 '06 #1
3 1616
Use KeyPress, KeyUp, KeyDown or PreviewKeyDown event.

chanmm

"Kürşat" <ku***********@hotmail.comwrote in message
news:uk*************@TK2MSFTNGP04.phx.gbl...
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.

Jul 21 '06 #2
are this events capable of saying whether a key message resulted by a
phisical key press or a software message?

"chanmm" <ch*****@hotmail.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
Use KeyPress, KeyUp, KeyDown or PreviewKeyDown event.

chanmm

"Kürşat" <ku***********@hotmail.comwrote in message
news:uk*************@TK2MSFTNGP04.phx.gbl...
>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.


Jul 21 '06 #3
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

"Kürşat" <ku***********@hotmail.comwrote in message
news:O7**************@TK2MSFTNGP02.phx.gbl...
are this events capable of saying whether a key message resulted by a
phisical key press or a software message?

"chanmm" <ch*****@hotmail.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
>Use KeyPress, KeyUp, KeyDown or PreviewKeyDown event.

chanmm

"Kürşat" <ku***********@hotmail.comwrote in message
news:uk*************@TK2MSFTNGP04.phx.gbl...
>>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.



Jul 21 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Lachlan Hunt | last post by:
Hi, I've been looking up lots of documentation and trying to work out a cross-platform method of capturing a keyboard event and working out which key was pressed. From what I can find, there...
9
by: supster | last post by:
Hello, I'm trying to capture when users press the tab key. This is scrolling through different fields with tab is broken in my form. I'm not sure why, but it may have something to do with the fact...
4
by: Tim | last post by:
Hi Guys, I want to know how to tell if the shift key is held down when another key is pressed. I am using the following code to make sure that only numbers, backspace and decimal are allowed...
2
by: Joe Erpenbeck | last post by:
On an asp.net page, when focus is in a text box and the user presses return, then a postback occurs and the first ImageButton on the page handles the event. I would prefer that nothing happens. I...
5
by: PD | last post by:
The TextChanged event is not being called when I hit the "Enter" key. Yet it does for the "Tab" key. I set a break point in the Page_Load event and the TextChanged event and none of these get...
4
by: active | last post by:
I can use Control.ModifierKeys to determine if a modifying key is pressed when executing MouseDown event, but how can I determine if an "M" was pressed?? Possible? Can't find a clue in...
2
by: Don | last post by:
It took me a while to find this code, so I decided to post it here for others who might also be looking for a way to trap tab key presses. You can extend a control and place this code in it to...
4
by: portCo | last post by:
Hello there, I am using Visual Basic 2005. I want to store a value when I press enter key on the keyboard. Could anyone help me out? Thanks alot.
1
by: daonho | last post by:
I tried to use javascript to trigger up the button click function when user press enter key from the textbox. This function work fine with a single button click such has login page. However, if the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.