HackingUniversity - Hacks . Tricks . How-To's

04 June 2014

How to use Caps Lock for the Cut, Copy & Paste Shortcut

caps-lock-key-windowsThe Caps Lock key on the keyboard is among the least used, meaningless key that people use only if they are need to write a full paragraph in CAPS. Individuals typically choose making use of the shift button to make the letters upper case. You can rather map it to do better functions. All you require is a software application called AutoHotKey. This little tool allows you to create your own hot keys for mouse and keyboard and even some nice macro scripts.

Using CAPS LOCK Key as the Copy/Paste Command

So basically what we are going to do is to Map the Cut, Copy and Paste command onto the CAPS LOCK key so it feels easier for copying and pasting subjects into your text editors and using them easily.

  1. Download AutoHotKey tool for Windows.
  2. Now you have downloaded and installed the above software application in your windows, now its time to create a little Macro script.
  3. Now open up your Notepad and copy below script into it.

    if (A_PriorHotkey <> “~CapsLock” or A_TimeSincePriorHotkey > 500)
    KeyWait,  CapsLock
    SendInput, ^c
    SendInput, ^v
    SendInput, ^x

  4. Now save this Notepad file with extension .ahk. You can rename it whatever you want as it does not matter but extension should be .ahk.
  5. Now just double click this saved file to execute it so that you can make use of the Caps Lock button to Cut, Copy and Paste for you instead of turning the case of letters.
  6. Controls: Pressing Shift and Caps Lock will act as cut, tapping Caps Lock once will serve as copy and double tapping of Caps Lock will act as paste.

Executing this Script on Windows Startup

The problem with this bit though is that you have to execute it each time you begin windows, which is a trouble. So let's put it into start-up of the computer system to prevent this headache too.

  • Navigate to: C:\Users\[UserName]\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup and paste the .ahk file you created above.
  • Note You can still toggle Caps Lock on and off if you really have to, using the key combination of Windows + Caps Lock.
  • Also Check Out: Creating Funky Facebook Text using this Caps Lock Trick.

So this ends another simple but useful tutorial that will help all the GEEKS to save some time and get their hands on these awesome shortcut based stuff. Well hope this works for all of you, if you face any problem do comment below.