Skip to content

AHK script to interact, modify and launch windows

Notifications You must be signed in to change notification settings

Yetenol/shortcutFox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shortcutFox

Download script List releases

shortcutFox adds a menu to the system tray that contains frequently used actions, update scripts and settings for keyboard shortcuts. With a human readable configuration file the menu can be edited or additional actions can be added.

Features

Usage example

Keyboard shortcuts

Change word case in editors. [CapsLock]

Pop up KeeWeb

  • Lookup credentials. [Win + Shift + V]
  • Fill in credentials on websites. [Ctrl + Shift + V]

Insert the date formatted as YYYY-MM-DD. [Win + Alt + D]

Quick launch with PowerToys Run instead of Windows Search. [Win]

Tray shortcuts

Push and pull and repositories

  • Finds all repositories
  • Pushes and pulls all branches that exist locally and remotely
  • Shows progress in a terminal window
  • Only fast-forwards the pulls

Upgrade applications

  • Installs software upgrades via winget
  • Shows progress in a terminal window
  • Prompts to runs as administrator

Apply reddit wallpaper

  • Applies image as desktop background
  • Downloads best image post from r/wallpaper subreddit
  • Stores the image in a Pictures subfolder

Setup face recognition

  • Setup Windows Hello (again) to improve face recognition

Add a fingerprint

  • Add a fingerprint to Windows Hello

Transfer files via Bluetooth

  • Start Bluetooth File Transfer wizard

Recalibrate the digital pen

  • Useful for convertible laptops

Select area to screenshot

  • Start Snipping Tool area selection

Whitelisted apps to toggle word case

  • Microsoft Word

  • Microsoft PowerPoint

  • Files from Files Community

  • Visual Studio Code
    requiring Change Case
    with keybinding [Shift + F3] ← Change Word Case

  • Obsidian
    requiring Toggle Case
    with hotkey [Shift + F3] ← Toggle Case: Toggle Case

Build an executable yourself

Install dependency AutoHotkey v2 by running

winget install -e AutoHotkey.AutoHotkey --scope machine

Install dependency Ahk2Exe Compiler by executing

%ProgramFiles%\AutoHotkey\UX\install-ahk2exe.ahk
  • Or open AutoHotkey Dash and click Compile
  • Confirm to download Ahk2Exe

Build an executable by pressing [Ctrl+Shift+B] to run build task for VS Code or build using a terminal:

& "$env:ProgramFiles\AutoHotkey\Compiler\Ahk2Exe.exe" /in source\main.ahk /out bin\shortcutFox.exe /icon source\icons\menu.ico /bin "$env:ProgramFiles\AutoHotkey\v2\AutoHotkey.exe"
"%ProgramFiles%\AutoHotkey\Compiler\Ahk2Exe.exe" /in source\main.ahk /out bin\shortcutFox.exe /icon source\icons\menu.ico /bin "%ProgramFiles%\AutoHotkey\v2\AutoHotkey.exe"

Start shortcutFox from Windows Start or execute:

.\bin\shortcutFox.exe
  • Click Reload if prompted that the application is still running

Develop and debug using Visual Studio Code

Install code editor Visual Studio Code

winget install -e Microsoft.VisualStudioCode --scope machine

Add language support AutoHotkey v2 Language Support

  • features IntelliSense for AutoHotkey's functions and your's
  • features Rename Symbol

Make sure that the debugger always executes the main source file and not the currently opened one. Disable ahk2: Debug Script and ahk2: Debug Script with Params keyboard shortcuts in Keyboard Shortcuts (JSON):

    {
        "key": "f5",
        "command": "-ahk2.debug",
        "when": "!inDebugMode && editorLangId == 'ahk2' && resourceScheme == 'file'"
    },
    {
        "key": "shift+f5",
        "command": "-ahk2.debug.params",
        "when": "editorLangId == 'ahk2' && resourceScheme == 'file'"
    },

Add debugging adapter vscode-autohotkey-debug

  • features Breakpoints

The debug configuration file specifies which source file is the main file to compile from.

Credits