Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reviving the Scroll Lock
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00290236
Message ID:
00290244
Vues:
26
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform