Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Shift state on INKEY()
Message
From
31/08/1999 12:57:36
 
 
To
31/08/1999 12:45:20
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00259714
Message ID:
00259748
Views:
15
>>>How can I tell the shift state with the inkey() command? Inkey returns duplicate values for several key combinations (1 and alt+n; 2 and alt+m). How can you differentiate and tell what keys the user actually pressed? I can't use a keypress method on an object because I'm in an external prg.
>>>
>>>Help!!!
>>>
>>>TIA
>>
>>What are you trying to do? Maybe someone can suggest an alternate form based solution.
>
>I've got a program running in a continuous loop taking measurement readings from hardware. User input via keystrokes tells the system which readings to take. The program never gives focus back to the form to process keystrokes via keypress/keypreview because we're looking for realtime updating on a moving target.

In the old Dos days, I know I had to do something similar to this and ending up programming something in assemby that could even tell me which shift button was pushed. I'm not sure how you would handle the problem in this scenario. Hopefully someone else has some useful advice.
Previous
Reply
Map
View

Click here to load this message in the networking platform