by wo52616111

wo52616111 / capslock-plus

An efficiency tool that provides various functions by enhancing the Caps Lock key into a modifier ke...

582 Stars 116 Forks Last release: Not found GNU General Public License v2.0 46 Commits 2 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

English | 中文

master branch: v3.0+

v2 branch: v2.x


How to run the source code?

  1. Download and install AutoHotkey (v1.1.+)
  2. Clone the Capslock+ source code
  3. Run

How to set a custom function to a hotkey?

  1. There is a key function
    in demo.ahk.
  2. Add below setting under the [Keys] section in
  3. Save, reload Capslock+ (CapsLock+F5)
  4. Press
    to invoke the function
  • In order to avoid calling the internal functions, all the key functions are restricted to start with

An example here:

Replace Capslock+Q with Listary

Listary is a good app launcher, now I want to add two features to it:

  1. Activate Listary with
  2. I want to fill the selected text into the pop-up text input box

We can make it like this:

  1. Copy the following code to

    : ```ahk keyfunc_listary(){ ; Get the selected text selText:=getSelText()

    ; Send win+F (the default hotkey of Listary) to activate Listary sendinput, #{f}

    ; Wait until Listary is activated winwait, ahk_exe Listary.exe, , 0.5

    ; If there is any selected text if(selText){ ; Add "gg " before the selected text to google selText:="gg " . selText

    ; Fill the text, and press `home` key to move the cursor to the beginning,
    ; in order to add other keywords if you need.
    sendinput, %selText%{home}

    } } ```

  2. Add a setting

    section in
    , save, press
    to reload, done.

How to modify the original functions?

is the entry file, library files are in the
folder, the function of each file is as follows:

|Filename|Description| |:---|:---| |libbindWins.ahk|Window binding| |libclQ.ahk|qbar| |libclTab.ahk|CapsLock+Tab| |libfunctions.ahk|Some utils| |libinit.ahk|Program initialization| |libjsEval.ahk|The calculation function implemented by using the IE engine, required by Math Board and CapsLock+Tab| |libjson.ahk|json library| |libkeysFunction.ahk|All the key functions| |libkeysSet.ahk|Hotkey layouts| |libloadAnimation.ahk|Loading animation when the program starts| |libmathBoard.ahk|Math Board| |libmouseSpeed.ahk|Mouse speed modification| |libsettings.ahk|Load the settings in CapsLock+settings.ini| |libydTrans.ahk|Youdao Translation|

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.