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.
- 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.
- Verify that AutoHotkey v2.0+ is installed on your operating system.
- Download the script file from this repository.
- Execute the file to initialize the background process.
Note: To automate execution upon system boot, press
Win + R, typeshell:startupand paste the script file there. Ensure it has Administrator privileges to function correctly.
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 - https://github.com/mogdho/Capslock-CopyPaste