Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I can't find how I can check if the capslock is on or off.

share|improve this question
Can you be a bit more clear on what you're asking? – Josh K Dec 2 '10 at 20:48
verify if the capslock is on or off – mjsr Dec 2 '10 at 20:48
With what, on what operating system, through what program, uses, reasons, explain a bit. – Josh K Dec 2 '10 at 20:49
look the title man, autohotkey – mjsr Dec 2 '10 at 20:50
Just because it says AutoHotKey in your title doesn't mean that everyone that sees it will automatically know that you want to do this with AutoHotKey. If someone asked, they probably didn't know what you meant by AutoHotKey in your title and you should probably make both your title and your question more clear. – Wuffers Dec 2 '10 at 22:24
up vote 3 down vote accepted

Use GetKeyState.

state := GetKeyState("Capslock", "T")  ; True if CapsLock is ON, false otherwise.
share|improve this answer
state := GetKeyState("CapsLock", "T")
if state 
  MsgBox CapsLock is Enabled
  MsgBox CapsLock is Disabled
share|improve this answer
Stupid captcha. – Sathya Dec 2 '10 at 21:08

Use GetKeyState

if GetKeyState("Capslock", "T")
      ;do something because Caps Lock is on
      ;Caps Lock is off
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .