Help with an easy script: If Capslock is OFF, Turn On Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Guill
Posts: 139
Joined: 09 Jun 2016, 22:00

Help with an easy script: If Capslock is OFF, Turn On

23 Nov 2020, 22:54

Hi guys,

I need:

If Capslock is OFF
Turn On

Thanks in advance
Last edited by Guill on 23 Nov 2020, 23:25, edited 1 time in total.
User avatar
mikeyww
Posts: 27334
Joined: 09 Sep 2014, 18:38

Re: I need help with an easy script  Topic is solved

23 Nov 2020, 23:05

Code: Select all

CapsLock Up::
Shift Up::
If !GetKeyState("CapsLock", "T")
 Send {CapsLock}
Return
Or:

Code: Select all

Send % GetKeyState("CapsLock", "T") ? "" : "{CapsLock}"
Or:

Code: Select all

SetCapsLockState, AlwaysOn

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Bing [Bot], effel, JoeWinograd, Pianist, Skrell and 149 guests