Skip to content

Latest commit

 

History

History
118 lines (68 loc) · 5.14 KB

READEME.EN.md

File metadata and controls

118 lines (68 loc) · 5.14 KB

中文 | English


AutoHJKL

AutoHJKL is a tools scripted via AutoHotkey. Its main feature is endure extra function to CapsLock key.

AutoHJKL contains some features for personal use. And you can script your personal features for it. It has seom flexibility and scalability.

About name

It's a script binding HJKL keys to arrow keys at first and it's scripted via AutoHotkey. So I named it AutoHJKL.

How to run

You have two ways to run this script: Use release version if you don't know what is AutoHotkey; Or run script via AutoHotkey environment if you are AutoHotkey developer.

No matter which way you use it, it's recommended that run this script as an administrator to prevent the script from not working in some interfaces.

Use release version

You can download release binary file on GitHub if you can see the GitHub Release page. (.exe)

Run script via environment

Firstly, you need a AutoHotkey to run this script. You can only use AutoHotkey1.1 because of the sytax used. (Don't use AutoHotkey v2 cause it's still in Beta. And do not use deprecated 1.0 version too)

Right click AutoHJKL.ahk file and choose Run Script after install AutoHotkey environment.

Basic Usage

Use CapsLock plus the following keys to trigger features.

Many shortcut keys have certain rules. Some key combination is derived from the OS like Windows, so you do not have to memorize them.

Keys Features Comment
H J K L
Shift + H J K L Select Can take effect with Shift to select a word.
U I O P PageUp Home End PageDown
Shift + U I O P Select PageUp Home End PageDown
W A S D Move mouse
Q E Mouse Left Click Mouse Right Click
R F Mouse Wheel ↑ Mouse Wheel ↓
Shift + RShift + F Mouse Wheel ← Mouse Wheel →
T Enter Can take effect with Shift .
B Backspace
Shift + B Delete a line
Ctrl + B Delete a word The edge of a word is decided by OS and Editor

Advance Usage

Clipboard

Use CapsLock + X C V , then press number key 0 - 9.

X means Cut; C means Copy; V means Paste.

For example:

After press CapsLock plus X , press 1 means Cut(cause press X) to Clipboard 1

Note: The Clipboard feature was based on System Clipboard so that will cover the content of System Clipboard (Not applicable after v0.2) The Clipboard saved at clipboard directory of script root dir, reboot/reload does not affect clipboard data.

Window Bind

Bind

After press CapsLock + Alt + W , then press 0 - 9 in 3sec to bind current active window to the number you pressed.

Active

After press CapsLock + Alt + S , then press 0 - 9 in 3sec to active the window you binded.

Note: The id of binded window saved at window directory of root dir, reload script and reboot system does not affect window binded. But the binding records will be deleted if the script found window binded was closed.

Pin window

Press CapsLock + Alt + T to pin the focused window.

Hide and show

Press CapsLock + Alt + H to hide the focused window.

Press CapsLock + Alt + D to show all hidden windows.

AltTab Enhance

Press down Alt + Tab to call out Windows TaskSwitcher, release Tab and keep pressing Alt . Then you can use W A S D (Or H J K L) to move your focus; Press C to close the window which has focus.

Reload Script

Press CapsLock + Shift + Ctrl + R to Reload script. (Usually not required unless debugging user script)

Other shortcut functions

Open Cmd / Terminal / Powershell

Press Z to open Windows Terminal.

Press Alt + Z to open Cmd.

Press Ctrl + Z to open Powershell.

If the program can find a path on your focus window, Cmd / Terminal will open at this path.

Other keymaps

The keymap below are omitted CapsLock key.

Keys Map Comment
Alt + R F2 If you have F2 key, it may be useless for you