Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A good thing to know...
Message
From
29/10/1997 15:28:06
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
A good thing to know...
Miscellaneous
Thread ID:
00057267
Message ID:
00057267
Views:
59
I don't remember who asked the question the other day, but someone wanted to know how to capture a shift-click. I thing that the problem was resolved for her, but I have come across a win32 function perfect for capturing if a key is held down at any given time; getkeystate()

declare SHORT GetKeyState in Win32API INTEGER Key

getkeystate(17) returns .T. if the CTRL key is being held down and
getkeystate(16) returns .T. if the shift key is being held down.

I came across this usage in someone else's code, and I don't know where the 16 and 17 come from... they're not the inkey values... does anybody else know?
Erik Moore
Clientelligence
Next
Reply
Map
View

Click here to load this message in the networking platform