Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Losing keystrokes/save keyboard buffer
Message
From
07/04/1998 11:41:17
 
 
To
07/04/1998 11:17:40
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00089372
Message ID:
00090176
Views:
32
>I just implemented my idea and it works fairly well with my timer, I have to iron out the timing a bit though. Here's how it works.
>
>1) I created a new "storekey" property on my form
>
>2) at the start of my timer, or in your case your mouse click, I put this code
>to initialize the property. The ON KEY command gets processed by the main fox screen so form referances have to use _screen.forms(#) or _screen.myformname instead of thisform.
>
>
> thisform.storekey = 0
> ON KEY _screen.forms(1).storekey = INKEY()
>
>
>3) when a key is pressed during the routine, the inkey() value is stored to storekey. Only the last value is saved, you could save them sequentially as chr() values in a character field, etc. At the end of the routine, this code sends the keystroke to the keyboard and turns of the ON KEY routine. You can use 'thisform' again because it is being processed by the control.
>
> if thisform.storekey > 0
> keyboard chr(thisform.storekey)
> endif
> on key
>
>Hope this makes sense. If not, let me know and I'll try again.
>Rock

I'm pretty sure I understand what you are doing. I'll try it in my situation and see if it helps. Thanks, Mike.
Previous
Reply
Map
View

Click here to load this message in the networking platform