Caps Lock won't stay disabled

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
wilsongis
Posts: 1
Joined: 27 Jun 2022, 15:54

Caps Lock won't stay disabled

Post by wilsongis » 27 Jun 2022, 15:58

I am using this code to disable Caps Lock:

Code: Select all

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
; Disable Caps Lock key
SetCapsLockState, AlwaysOff
return
It periodically re-enables. I then need to rerun the script to fix it. How can I fix this behavior?

User avatar
boiler
Posts: 16767
Joined: 21 Dec 2014, 02:44

Re: Caps Lock won't stay disabled

Post by boiler » 27 Jun 2022, 16:38

How about simply:

Code: Select all

CapsLock::return

User avatar
A Keymaker
Posts: 454
Joined: 31 May 2022, 13:46
Location: Donjon du Château de Mérovingien

Re: Caps Lock won't stay disabled

Post by A Keymaker » 07 Jul 2022, 21:20

boiler wrote:
27 Jun 2022, 16:38
How about simply:

Code: Select all

CapsLock::return
For me this works

Post Reply

Return to “Ask for Help (v1)”