yucatan Posted May 3, 2010 Share Posted May 3, 2010 hello Guys, I wanne make a script that checks if numlock is enabled/disabled if its disabled then enable it. Can somebody help me on this? greetz Link to comment Share on other sites More sharing options...
JohnOne Posted May 3, 2010 Share Posted May 3, 2010 (edited) $numlock = DllCall("user32.dll", "long", "GetKeyState", "long", 0x90) If @error Then MsgBox(0, "", @error) Else If $numlock[0] = 0 Then MsgBox(0, "NUMLOCK", "OFF") ElseIf $numlock[0] = 1 Then MsgBox(0, "NUMLOCK", "ON") Else MsgBox(0, "NUMLOCK", "ERROR") EndIf EndIfTheres half of it.EDIT: dllcall found here Edited May 3, 2010 by JohnOne AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
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