RichardL Posted July 2, 2024 Posted July 2, 2024 Hi, I want to read status of Num/Caps/Scroll Lock and I'm running @XinLu's code here. post 2. For me it's just giving zero for all 3 whatever the state of the keys. That was 2008 and I have Windows 10 Enterprise 22H2. Does anyone have recent code that works. Thanks.
ioa747 Posted July 2, 2024 Posted July 2, 2024 this work for me Win10 22H2 https://www.autoitscript.com/forum/topic/12056-determing-state-of-capslock-scroll-and-numlock/#comment-82994 I know that I know nothing
RichardL Posted July 2, 2024 Author Posted July 2, 2024 Thanks, but I've received separate advice that the keycodes in the original code are wrong (now). Copied the codes from here and it works perfectly. Const $VK_NUMLOCK = 0x90 Const $VK_SCROLL = 0x91 Const $VK_CAPITAL = 0x14
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now