Skip to content

Instantly share code, notes, and snippets.

@ysheng26
Created September 3, 2013 01:27
Show Gist options
  • Save ysheng26/6418744 to your computer and use it in GitHub Desktop.
Save ysheng26/6418744 to your computer and use it in GitHub Desktop.
AutoHotKey script to assign capslock to ctrl. It is optional to remap capslock to either left ctrl or right ctrl.
;
; AutoHotkey Version: 1.x
; Language: English
; Platform: Win9x/NT
; Author: William Isaac Miller <wimiller@cs.umb.edu>
;
; Script Function:
; Remaps the CapsLock key to Control, and moves CapsLock to Right Control.
;
;;; Default script settings
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
;;; Remap CapsLock to Control.
CapsLock::Control
;;; Move CapsLock to either Right Control or Left Control.
; LControl::CapsLock
; RControl::CapsLock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment