- AutoHotkey 99.7%
- Batchfile 0.3%
| old | ||
| .gitignore | ||
| mausuHoldo.ahk | ||
| piusareLite.ahk | ||
| README.md | ||
| runscript.bat | ||
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 Lockwith 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 holdingShiftto write–. - You can also write the Euro sign
€pressingp, the umlaut uüpressing[and theñwithn.
- Press on any of the spanish vowel keys
- Press both
Shiftkeys to toggleCaps Lock. Caps Lockkey acts as anotherLeft Control.Left Altmust 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
Altkeys. - Move your cursor around by holding
j,k,land;. - Press
uforSingle Left Mouse Click,iforSingle Middle Mouse ClickandoforSingle Right Mouse Click. - Press
/forMouse 4andpforMouse 5. - Press
yforScroll UpandnforScroll Down. - Press
ntoHold Left Mouse Click,,toHold Middle Mouse Clickand.toHold Right Mouse Click. Pressing both these keys or their respectiveSinglevariants will let go. - Press
hor'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.ahkis preserved as the flawed, single-threaded variand ofmausuHoldo.ahk.cmah.ahkserved its purpose: ripping some sprites from a NeoGeo game using a web-based memory watcher.piusareLED.ahkhas 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.