Git Product home page Git Product logo

autohotkey-scripts's Introduction

AutoHotkey Scripts I Use

index.ahk is for scripts that I have not yet converted to AutoHotkey V2 syntax. index.ah2 is for scripts that are AutoHotkey V2 already. Eventually, I just want to have one index file.

The index files just import all the other scripts that I want to use on a regular basis. That way, I only see two AutoHotkey symbols in my system tray and not a bunch.

I associate .ahk files with Autohotkey version 1 and I associate the extension .ah2 with Autohotkey version 2 in Windows. Then I create shortcuts to the index files and place them in my user startup folder so that they are available at startup.


This script makes it easy to move windows around to fixed positions on the screen. One of the main reasons I like it is that it leaves a little gap between windows. This is not only aesthetically pleasing, but makes it easy to adjust the window sizes with the mouse. For example you can move a window to the upper left corner of the screen with Win + Shift + Alt + L and then make it a little taller or shorter as needed.

Key binding Description
Win + Shift + U Makes the active window take up the majority of the screen, but leaves a ten pixel margin around the edges.
Win + U Moves and resizes the active window to the upper half of the screen
Win + Shift + C Centers the active window on the screen
Win + B Moves and resizes the active window to the bottom of the screen
Win + Shift + H Moves and resizes the active window to the left half of the screen. The choice of H is Vim-inspired.
Win + Shift + L Moves and resizes the active window to the right half of the screen. The choice of L is Vim-inspired.
Win + Shift + Alt + L Snaps the active window the upper right corner of the screen. The choice of L is Vim-inspired. Useful combo is to use Win + Shift + Ctrl + C to make a window take up a quarter of the screen and then use another shortcut to snap it to a corner.
Win + Shift + Ctrl + L Moves the active window to the bottom right corner of the screen. The choice of L is Vim-inspired. Useful combo is to use Win + Shift + Ctrl + C to make a window take up a quarter of the screen and then use another shortcut to snap it to a corner.
Win + Shift + Alt + H Snaps the active window the upper left corner of the screen. The choice of H is Vim-inspired. Useful combo is to use Win + Shift + Ctrl + C to make a window take up a quarter of the screen and then use another shortcut to snap it to a corner.
Win + Shift + Ctrl + H Moves the active window to the bottom left corner of the screen. The choice of H is Vim-inspired. Useful combo is to use Win + Shift + Ctrl + H to make a window take up a quarter of the screen and then use another shortcut to snap it to a corner.
Win + Shift + Ctrl + C Centers the active window on the screen and shrinks it to take up a quarter of the screen. Useful combo is to do this and then use another shortcut like Win + Shift + Alt + L to snap the screen to the upper right quarter of the screen.

Launcher ๐Ÿš€

The launcher script is for launching commonly used programs using hotkeys.

Key binding Description
Win + Enter Launches the terminal (alacritty in wsl)
Win + C ๐Ÿงฎ Launches calculator app

This script comes from VirtualDesktopAccessor. I built the VirtualDesktopAccessor DLL and include it under /src.

Press Win + <number> 0 - 9 to switch to that desktop (0 is actually 10 here since it's furthest right on the keyboard. 1 = 1, ..., 9 = 9, 0 = 10).


This script has more miscellaneous utilities.

Key binding Description
Win + F Performs ctrl + f. This disables the Windows feedback hub shortcut
Win + C Performs ctrl + c. This disables the Teams shortcut
Capslock Sends the down arrow key. This is especially useful with context menus to quickly cycle through options without needing the mouse.
Shift + Capslock Sends the up arrow key. This is especially useful with context menus to quickly cycle through options without needing the mouse.
Win + , Opens the preferences window in some applications

autohotkey-scripts's People

Contributors

jmbeach avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.