Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reviving the Scroll Lock
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00290236
Message ID:
00290244
Views:
32
>I've recently been put in charge of graphics and other little enhancements in general here at work. I've got a few little programs that do odd-ball things, (progress meters and such), but I've decided to add something new. I know that numlock() and capslock() are cute, but what about Scroll Lock ? I figure there's an API call that will detect it, but have been unable to find one. If anyone knows how to control Scroll Lock, no just detect it, but contol it, please let me know.
>
>Thanks,

Hi Chris,

The following will tell you the state of the scroll lock key
#DEFINE VK_SCROLL 0x92
DECLARE INTEGER GetKeyboardState IN Win32API;
  STRING @lpCodes
lccodes = SPACE(256)
= GetKeyboardState(@lccodes)
? ASC(SUBSTR(lccodes, VK_SCROLL, 1)) && 0 if off, 1 if on.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform