Skip to content

Instantly share code, notes, and snippets.

@JamoCA
Last active January 23, 2025 18:29
Show Gist options
  • Save JamoCA/d5d7a1b6098f7582e2c22c4d357b3650 to your computer and use it in GitHub Desktop.
Save JamoCA/d5d7a1b6098f7582e2c22c4d357b3650 to your computer and use it in GitHub Desktop.
; AutoHotkey hotstring: auto-replace "hack" terms with friendlier random phrase
; 2025-01-23
; Author: James Moberg http://sunstarmedia.com @sunstarmedia
; GIST: https://gist.github.com/JamoCA/d5d7a1b6098f7582e2c22c4d357b3650
; TWEET: https://x.com/gamesover/status/1882495718809853997
; This hotstring will use a random phrase whenever a "poorly chosen hack-related word" is typed, followed by a space or punctuation; text case is not preserved. (2025-01-23)
::hack::
::bypass::
::glitch::
::trick::
::kludge::
::makeshift::
::gimmick::
hackphrases := ["workaround", "shortcut", "quick fix", "temporary solution", "ad hoc solution", "improvised method", "innovative approach", "efficient technique", "unconventional method", "band-aid solution", "patch", "clever trick", "provisional fix"]
Random, randomIndex, 1, hackphrases.Length()
chosenPhrase := hackphrases[randomIndex]
Sleep, 50 ; pause or some programs (ie, VScode, Outlook) will experience issues
SendInput, %chosenPhrase%%A_EndChar%
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment