Skip to content

mogdho/Capslock-CopyPaste

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Capslock-CopyPaste

AutoHotkey License Platform

Capslock-CopyPaste is a productivity-boosting AutoHotkey v2 script that repurposes the often-unused CapsLock key into a universal Copy-Paste shortcut. By utilizing advanced double-tap detection logic, it streamlines your workflow while preserving the original CapsLock functionality when needed.

✨ Key Features

  • Single Press (Copy): Instantly copies selected text or files (Ctrl + C).
  • Double Press (Paste): Pastes the current clipboard content (Ctrl + V) seamlessly.
  • Original Function Preserved: Toggle the traditional CapsLock state on or off by pressing Shift + CapsLock.
  • Smart Tap Detection: Uses a precise 300ms timer to accurately distinguish between single and double taps without triggering unwanted commands.
  • Auto-Admin Elevation: Automatically requests Administrator privileges to ensure the shortcut works flawlessly across all applications, including elevated system windows.

πŸš€ Installation & Usage

  1. Verify that AutoHotkey v2.0+ is installed on your operating system.
  2. Download the script file from this repository.
  3. Execute the file to initialize the background process.

Note: To automate execution upon system boot, press Win + R, type shell:startup and paste the script file there. Ensure it has Administrator privileges to function correctly.

πŸ› οΈ Technical Details

The script uses A_PriorHotkey and A_TimeSincePriorHotkey to handle the multi-tap logic smoothly. The base CapsLock state is locked to AlwaysOff by default to prevent accidental casing changes during fast typing.


πŸ”— Download/Source link

About

A AutoHotkey v2 script that turns the CapsLock key into a smart Copy (single press) and Paste (double press) shortcut.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors