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