Comfy rebinds and cursor movement scripts.
  • AutoHotkey 99.7%
  • Batchfile 0.3%
Find a file
2024-01-28 16:06:16 +01:00
old Modified README.md 2023-07-02 18:02:57 +02:00
.gitignore mausuHoldo & piusareLite: slight cleanup / title added 2023-07-02 16:08:42 +02:00
mausuHoldo.ahk mausuHoldo & piusareLite: slight cleanup / title added 2023-07-02 16:08:42 +02:00
piusareLite.ahk piusareLite: added more characters 2024-01-28 16:06:16 +01:00
README.md piusareLite: added more characters 2024-01-28 16:06:16 +01:00
runscript.bat Modified README.md 2023-07-02 18:02:57 +02:00

Collection of useful scripts for keyboard remappings and mouse operation without modifying keyboard language or system locale.

Keyboard Remappings - piusareLite.ahk

Set of key bindings meant for the ANSI US layout set to:

  • Facilitate the usage of spanish tilde keys without depending on a dead key.
  • Add inverted exclamation and question marks, alongside en and em dashes.
  • Remap modifier keys to accomodate a comfier usage.
  • Toggle Caps Lock with both Shift keys.

How to use

  • While holding Left Alt:
    • Press on any of the spanish vowel keys (a, e, i, o, u) to write their accented representation (á, é, í, ó, ú).
    • Press / to write ¿, [ to write ¡.
    • Press - (hyphen) to write , or press - (hyphen) while holding Shift to write .
    • You can also write the Euro sign pressing p, the umlaut u ü pressing [ and the ñ with n.
  • Press both Shift keys to toggle Caps Lock.
  • Caps Lock key acts as another Left Control.
  • Left Alt must be released before inputting another macro character in order to prevent writing multiple, unintended macro characters when typing quickly.

Compilation

Usage of this script requires the latest version of AutoHotKey v1 (1.1.36.02 as of writing) with Unicode support, readily available on the project's page. It is also tested on AutoHotKey_H v2.

Alternatively, you can compile the script using the built-in compiler distributed with AutoHotKey v1 or AutoHotKey_H v2 with v1 binary:

Ahk2Exe.exe /in piusareLite.ahk /out KeyboardMappings.exe

Mouse On Keyboard - mausuHoldo.ahk

Keyboard layer that allows cursor interaction using only the keyboard itself. This script allows you to:

  • Move, click and hold.
  • Change between two speeds.
  • Hide cursor with a single keystroke.

How to use

Assuming an ANSI US keyboard:

  • Enable and disable by pressing both Alt keys.
  • Move your cursor around by holding j, k, l and ;.
  • Press u for Single Left Mouse Click, i for Single Middle Mouse Click and o for Single Right Mouse Click.
  • Press / for Mouse 4 and p for Mouse 5.
  • Press y for Scroll Up and n for Scroll Down.
  • Press n to Hold Left Mouse Click, , to Hold Middle Mouse Click and . to Hold Right Mouse Click. Pressing both these keys or their respective Single variants will let go.
  • Press h or ' to change between cursor speeds.
  • Press [ to hide cursor.

Compilation

Usage of this script requires AutoHotKey_H v2 with Unicode support due to its reliance on multi threading. AutoHotKey_H v2 is available on its project's page.

Alternatively, you can compile the script using the built-in compiler distributed with AutoHotKey_H v2 with v1 binary:

Ahk2Exe.exe /in mausuHoldo.ahk /out MouseOnKeyboard.exe

False positive

Windows Defender flags this script as malicious on some devices. Dealing with that would require submitting a single, compiled executable to Microsoft for them to manually review and approve, and I'm not interested in dealing with all that.

Use on administrator-owned windows

These scripts, as they stand, require elevated privileges to work within privileged windows when UAC is active due to system restrictions. Adding and testing the code required to circumvent this limitation not only would make the scripts even more unwieldy, but also woulnd't overcome all the restrictions imposed by UAC. As such, it is recommended to run these scripts as adminsitrator. A batch file is included alongside releases to facilitate this, which can be added to a scheduled task so that it is done automatically on log in.

Bonus

  • mausu.ahk is preserved as the flawed, single-threaded variand of mausuHoldo.ahk.
  • cmah.ahk served its purpose: ripping some sprites from a NeoGeo game using a web-based memory watcher.
  • piusareLED.ahk has code to light up your keyboard's lights! Kinda cool if you wanna set up some sort of visual alert. Also, it was designed to be a much more thorough key layer, meant to be used with whatever text editor, messaging app or whatever program you wanted. A text file vaguely detailing how to used is provided alongside it.

External Links