This autohotkey file is a script to make the mose not necessary as the keyboard and holding space while using WASD can replace all mouse functionality. This is especially useful for coding as your hands can remain stationary on a keyboard or bluetooth keyboard making programming much more accessible.
For capslock ahk file simply double tap capslock and you can begin to move the mouse around.
For spacebar hold ahk file, must press and hold spacebar and tap the n button to enter mouse moving mode with keyboard. There are some issues with typing and it always inputing space, so it's not recommended but it does act like the MAC karabiner elements script I made.
Holding spacebar and using WASD is the directions to move the mouse. Holding down 'L' will speed up the mouse movement where holding down 'N' will slow it down. 'F' will left click. 'I' will right click.
Download autohotkey https://www.autohotkey.com/ and repalce the default autohotkey script with this one. where you save or run them. However, here are the most common locations you might find or place AutoHotkey scripts:
-
Your own files or folders Most users save
.ahkfiles in places like:C:\Users\<YourUsername>\Documents\- Desktop:
C:\Users\<YourUsername>\Desktop\ - Custom folder like
C:\Scripts\orC:\AHK\
-
Startup Folder (for scripts that auto-run on boot) If you want a script to run every time you start your PC, place a shortcut to the script in:
C:\Users\<YourUsername>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup -
Running AutoHotkey scripts from Task Scheduler or via registry If you've set a script to run on login via the Task Scheduler or registry, check those tools to see the path of the
.ahkfile.
If you're unsure where it's running from:
- Right-click the AutoHotkey icon in your system tray (green H icon), then choose "Open" or "Edit Script" to locate it.
- Or check Task Manager → Details tab → Right-click
AutoHotkey.exe→ Open file location.
Let me know if you'd like help auto-starting your script on boot.