Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is it possible to check whether a button on the keyboard is physically

Status
Not open for further replies.

normanhk

Programmer
Oct 4, 2003
15
HK
My situation is that some crazy users just press a key and do not release the key (of course I cannot educate the user to press a key properly). So Windows auto-repeat finction just keeps on sending repeating characters to the keyboard buffer. So if I try to show some pictures and sound clips at this moment, the those pictures and sound will be interrupted. Is it possible for VFP to check that a key is physically released?

Regards,
Norman
 
Norman

Have you checked out the Object.KeyPreview property which allows you to handle keypress events before the active control receives them?

Bob Palmer
The most common solution is H2O!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top