Some games (e.g., Garry's Mod, Minecraft with mods, Roblox) natively support Lua/JavaScript macros. Checking the game's official workshop or mod community can yield safe, built-in automation.
The Hidden Costs of Digital Shortcuts: An Analysis of Software Cracking