Information générale
Catégorie:
Codage, syntaxe et commandes
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
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement