Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Losing keystrokes/save keyboard buffer
Message
De
07/04/1998 11:41:17
 
 
À
07/04/1998 11:17:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00089372
Message ID:
00090176
Vues:
33
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform