>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))
George
Ubi caritas et amor, deus ibi est