yucatan 0 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 Share this post Link to post Share on other sites
JohnOne 1,603 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. Share this post Link to post Share on other sites