Some AHK scripts that I personally use.
GlobalKeybinds: Keybinds (and more) that I always have on.
GlobalKeybinds attempts to provide useful keybinds (mostly while typing) while also respecting widely-used keybinds. It also contains other features regarding some specific keys (see below).
C = Ctrl, S = Shift, M = Alt
| Keybind | Function |
|---|---|
| C-l | forward char |
| C-h | backward char |
| M-l | forward word |
| M-h | backward word |
| C-k | next line |
| C-j | previous line |
| C-o | newline above |
| C-. | newline below |
| C-m | kill line |
| C-q | move beginning of line |
| C-e | move end of line |
| C-S-z | redo |
| M-0 | send ๐ |
| C-M-o | send C-o |
- A small translucent emacs logo appears at the top right of your screen while the keybinds are active (i.e. while the script is not suspended)
- Auto-suspend keybindings depending on the current active window (add your own
.exe's; Window Spy will be helpful) - Disables the
F1key - Disables the
Insertkey - Permanently enables
NumLock
Enable/disable any of these features at the top of GlobalKeybinds.ahk.
Run GlobalKeybinds.ahk with AutoHotkey v2.0.
Suspend the script to temporarily disable the keybinds.
-
WinKey+R โ Enter "shell:startup" โ Place a shortcut to the script here
-
"C:\Users\%USERNAME%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup" โ Place a shortcut to the script here
PDNerase: Easily mimic MS Paint's erase interaction in Paint.NET.
This assumes that the background is white. PressCtrl+E to switch between draw/erase mode.
WindowAlwaysOnTop: Press Ctrl+Space to toggle between keeping a window always on top and not.
MoveWindowToNextDesktop: Keybinds to move the current focused window to the previous/next Windows desktop.
Win+Ctrl+Shift+โ: Move window to previous desktopWin+Ctrl+Shift+โ: Move window to next desktop