Macroing

Macroing can be used to optimize parts of the game through automation, utilising simulated presses on keys to activate Hotkeys. This can be extremely useful to accomplish Achievements with relatively few Infinity Points, to speed up micromanagement and to use a specific setup/strategy in Challenges.
You can macro in several different ways, whether it can be using an autoclicker, other program, or a plugin via Tampermonkey (eg. AntiQuark). These programs can simulate the pressing of keyboard keys or the clicking of the mouse.
==AutoHotkey==
AutoHotkey is a popular tool that can be used for Antimatter Dimensions. It can automate both timed and trigger-based mouse clicks as well as keyboard inputs through scripts. For example, you can allow a key to be pressed for a certain amount of time by using a script (e.g. M or R key).
===Autoclicker script===
Scripts are saved as .ahk text files. This is an example script for using AutoHotkey as an autoclicker. Hit F3 and the mouse is "left-clicked" 50 times per second. Hit F4 and the autoclicker stops. It can be easily edited like a text file, so feel free to change its behaviour as you please.
 #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
 SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
 SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
 
 `::Suspend
 
 F4::
 Stopped := 1
 return
 
 F3::
 Stopped := 0
 Loop
 {
 MouseClick, Left
 Sleep, 20
 if (Stopped = 1)
 break
 }
 return
===Hotkey Automation Scripts===
*Simple hotkey automation scripts (Comments on Reddit post about Patashu's Guide)
*Josh Moore's script (Customizable feature-rich script)