General information
Category:
Windows API functions
There is a need to check which key the user was pushed to exit a wait state in my application (hard to tell the details here). Since such wait state can be terminated by a mouse click (and other means) without pushing a key, I'll set the lastkey value before the wait state for easy trapping.
The following code worked very well in most of my routines. However I found a problem under one or two circumstances (could be a bug of VFP) and therefore look for an API.
Clear Typeahead
Keyboard Chr(m.nKey)
=Inkey(0)
>Hi,
>Why you wan to set lastkey value?
>If you want to simulate pressing keyboard, you can try KEYBOARD "{}" command
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only