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:
00290268
Views:
25
I appreciate the reply, and have played with it for a while... Here's what I came up with...

#DEFINE VK_SCROLL 0x92
DECLARE INTEGER GetKeyboardState IN Win32API STRING @lpCodes
lccodes = SPACE(256)
= GetKeyboardState(@lccodes)

lnSetting = ASC(SUBSTR(lccodes,vk_scroll,1))
lnSetting = IIF(lnSetting=0,1,0)
lccodes = SUBSTR(lccodes,1,(vk_scroll)-1) + ;
CHR(lnSetting) + SUBSTR(lccodes,(vk_scroll)+1,LEN(lccodes))

This grabs the setting, and changes it from 1>0 or 0>1 depending. My next question is this... I tried to add in a SetKeyboardState with the new lccodes, but kept receiving the message 'Too many parameters.'. I declared it the same way and tried to run it the same way as GetKeyboardState, but it failed. Am I forgetting something ?

Thanks,
Chris
Chris Zangarine
Software Development Engineer
Pipeline Compliance System (PCS)
American Innovations
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform