Skip to content

Sub0720/My-Ahk-Script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 

Repository files navigation

Smart.ahk

A single-file AutoHotkey toolkit that provides global hotkeys, a lightweight autoclicker, extensive text-expansion / autocorrect hotstrings, quick utility hotkeys (close window, date/time insert), simple volume controls and a few small window/app-switch helpers. Designed to run as a single script with auto-elevation when required and an emergency suspend/exit.


Key features (concise)

  • Global suspend toggleF12 toggles Suspend (disables all hotkeys while on).
  • Exit scriptWin + Shift + Q (#+q) prompts to close the script.
  • AutoClicker — Toggle left/right autoclick:
    • Win + Alt + Left (#!Left) — toggle left auto-clicker (uses a SetTimer sending Click, left).
    • Win + Alt + Right (#!Right) — toggle right auto-clicker (uses a SetTimer sending Click, right).
  • Close active windowInsert closes the currently active window.
  • Quick app/window switch helpers
    • Right Ctrl (RControl) — sends Ctrl up then !{Tab} (used to perform a quick app switch action).
    • Right Alt (RAlt) — toggles sending Alt+W (custom toggle behavior).
  • Volume controls (convenient without focusing a media app)
    • Alt + WheelUp — Volume Up
    • Alt + WheelDown — Volume Down
    • Alt + Middle-button — Toggle Mute
  • Date & time hotstrings
    • ;date → inserts current date formatted dd:MM:yyyy
    • ;time → inserts current time formatted hh:mm:ss tt
  • Auto-elevate — script attempts to auto-run elevated (Run *RunAs) when not started as administrator.
  • Game exclusions — the script uses #IfWinNotActive to avoid interfering with certain games (e.g., javaw.exe (Minecraft), valorant.exe, csgo.exe).
  • Massive hotstring set — ~4960 hotstrings (auto-corrections, contractions, shorthand expansions, common phrases). These cover:
    • Common contractions and shorthand (idkI don't know, brbbe right back, tythank you, etc.)
    • HTTP shortcuts (http:\\\http://, htphttp:)
    • Spelling corrections (accomodateaccommodate, etc.)
    • Punctuation and small snippets
  • Tooltips and brief UI feedback — toggles show ToolTip feedback and timers remove tooltips automatically.

Shortcuts / Hotkeys (exact mappings found in the script)

  • F12
    Toggle full suspend mode (disables all hotkeys).
  • Win + Shift + Q (#+q)
    Prompt and exit script.
  • Win + Alt + Left (#!Left)
    Toggle LEFT AutoClick (uses SetTimer LeftClick).
  • Win + Alt + Right (#!Right)
    Toggle RIGHT AutoClick (uses SetTimer RightClick).
  • Insert
    If not paused, closes the active window (WinGet + WinClose).
  • Right Alt (RAlt)
    Toggle that sends !w (Alt+W) when toggled ON.
  • Right Ctrl (RControl)
    Sends {Ctrl up}!{Tab} — a quick app switch helper (releases Ctrl then does Alt+Tab).
  • Alt + WheelUp
    Volume up (mapped to Volume_Up).
  • Alt + WheelDown
    Volume down (mapped to Volume_Down).
  • Alt + Middle Mouse Button (Alt & MButton)
    Volume mute toggle.

Hotstrings of note:

  • ;date → inserts the date in dd:MM:yyyy.
  • ;time → inserts time in hh:mm:ss tt.
  • ::http:\\\\::http:// and ::htp:::http: — quick fixes/shortcuts for URLs.
  • A very large set (~4960) of autocorrections, contractions, and common shorthand (e.g., brb, idk, ty, dw, many misspellings corrected to proper spelling).

Installation / Usage

  1. Install AutoHotkey (v1.x) if not already installed.
  2. Place Smart.ahk in your preferred folder.
  3. Run the script (double-click). If not started as admin, the script attempts to auto-elevate.
  4. Use F12 to suspend/resume all hotkeys. Use Win+Shift+Q to exit.

About

An AutoHotkey script that provides customizable keyboard and mouse automation to improve workflow efficiency. It uses hotkeys, timing logic, and lightweight UI feedback to streamline repetitive actions without collecting or transmitting any personal data.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors