My personal authotkey scripts. Hope, they are useful for others, too.
Most of the scripts is adopted for usage with an Ultra Wide Monitor like LG 34UC98-W. They replace most of the window placement/movement shortcuts in windows. The idea is to use thirds instead of halfs on ultra wide monitors and halfs on standard (16:9/16:10) monitors. The script is intendend to work without monitor-specific configuration. When using thirds, double columns are supported, which means that a window can take two thirds of the screen.
- Install Autohotkey
- e.g. with Chocolatey:
choco.exe install autohotkey
- e.g. with Chocolatey:
- git clone [email protected]:baderas/autohotkey-scripts.git
- copy Autorun_ahk.ahk in autostart folder (C:\Users%USERNAME%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Autostart)
Shortcut | Note | Application | File |
---|---|---|---|
Win-^ |
Opens Windows Windows Calculator (^ is the key next to numbers on a german keyboard). | Windows Calculator | Calc.ahk |
Win-t |
Opens ConEmu, my favorite terminal. | ConEmu | ConEmu.ahk |
Win-e |
Opens Windows Explorer, replaces Windows default shortcut, uses window placement. | Windows Explorer | Explorer.ahk |
Win-< |
Moves a window without double column positions in right direction. | Fling.ahk | |
Win-Right |
Moves a window with double column positions in right direction. | Fling.ahk | |
Win-Left |
Moves a window with double column positions in left direction. | Fling.ahk | |
Win-Numpad1 |
Moves a window on first column on the ultra wide monitor. | Fling.ahk | |
Win-Numpad2 |
Moves a window on second column on the ultra wide monitor. | Fling.ahk | |
Win-Numpad3 |
Moves a window on third column on the ultra wide monitor. | Fling.ahk | |
Win-Numpad4 |
Moves a window to the first two columns on the ultra wide monitor. | Fling.ahk | |
Win-Numpad5 |
Moves a window to the last two columns on the ultra wide monitor. | Fling.ahk | |
Win-n |
Opens KeePass2 and its "add new password" dialog. Automatically fills in the actual window title (works with Firefox). | KeePass2 | Keepass1.ahk |
Win-a |
Starts auto-type of KeePass2 (Ctrl+Alt+A). Release Windows Key immediately, otherwise the pasted characters will be interpreted as shortcuts. | KeePass2 | Keepass2.ahk |
Win-k |
Starts KeepNote. | KeepNote | Keepnote.ahk |
Win-l |
Logs user off and sends monitor immediately into standby. Replaces default windows shortcut. | LockAndTurnOffMonitor.ahk | |
Win-s |
Moves the actual Notepad++ instance into foreground or opens a new Notepad++ instance. The shortcut comes from SciTE, which I used before Notepad++. | Notepad++ | Notepad++.ahk |
Ctrl+h |
Toggles display of hidden files in Windows Explorer. | Windows Explorer | ToggleHiddenFiles.ahk |
Win+u |
Starts Updates of Chocolatey (admin) and MSYS2 via ConEmu. Replaces default windows shortcut. | ConEmu | Update.ahk |
Some of the functions of autohotkey is used without hotkeys. Therefore a list of these scripts and their functions:
File | Function |
---|---|
Autorun.ahk | Starts programs in a defined order after user has logged in. |
Autorun_ahk.ahk | Executes all .ahk scripts in C:\Users%USERNAME%\ahk_scripts except itself, Fling2.ahk, and WindowPlacementFunctions.ahk. Copy this script in your autostart folder. |
Encfsmp.ahk | Mounts a EncFSMP encrypted folder and starts KeePass2 afterwards. |
Fling2.ahk | Provides the fling function for Fling.ahk, WindowPlacementFunctions.ahk, and ConEmu.ahk. |
Maximize.ahk | Used to maximize specific programs after they are started via Autorun.ahk. |
WindowPlacementFunctions.ahk | Library of some often used functions for window placement, etc. |
File | Problem |
---|---|
Update.ahk | choco upgrade all can be run via ConEmu or via Powershell. When running via ConEmu, ConEmu crashes when Chocolatey updates it (if installed via Chocolatey). Additionally, the UAC (admin) prompt is sometimes in the background, which is cannot be changed by Autohotkey. When Powershell is used, the Powershell window can't be flinged or repositioned by Autohotkey. |
- https://github.com/koppor/autohotkey-scripts
- https://autohotkey.com/board/topic/51956-flinging-windows-across-a-multi-monitor-system/
- https://gist.github.com/AWMooreCO/1ef708055a11862ca9dc
- http://davejamesmiller.com/blog/autohotkey-toggle-hidden-files-andor-file-extensions-in-windows-explorer
- https://autohotkey.com/board/topic/37352-dockndrag-docks-two-windows-together-for-move-and-resize/