Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Losing keystrokes/save keyboard buffer
Message
 
To
03/04/1998 15:48:42
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00089372
Message ID:
00089438
Views:
25
>>>Does anyone know of a way to save the contents of the keyboard buffer to a memory variable, or to anything else for that matter, and then retrieve it afterwards? My program is losing keystrokes when the I hit ESC quickly 2 or 3 times. It only processes 1 press of the ESC key and I haven't been able to figure out why.
>>>
>>>Here is the scenario. The user is sitting in a textbox with the Cancel property of the Undo button set to true. When the user presses ESC, the Undo button is "clicked". Then my program sets the Cancel property of the Undo button to false and the Cancel property of the Find button to true. The second press of the ESC key should "click" the Find button, but it doesn't. I am hitting ESC pretty fast, but not that fast.
>>>
>>>As a last resort, I thought I would just try to save the keystrokes. Any suggestions?
>>
>>Have you tried disabling the undo button in the click event? Then in the click event of the find button, enable it. As a test, have you tried pressing escape then waiting and pressing again?? Does this work?
>
>Thanks for your suggestion. I just tried disabling the Undo button in the click event of the Undo button (I think that's what you meant), and it didn't help. Also, I have tried pressing ESC and waiting and pressing it again. It works perfectly. Any other ideas, I'm stumped?

Mike,
Sorry to have to tell you this but I just went away and created a form with undo and find buttons and it worked perfectly. How much code is there in your undo click event? Is there any chance that the undo cancel is set to false and the next escape is hit during processing and before find cancel is set true? If not, I'm also stumped!
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform