This is a quick guide to setup an AFK clicker in Minecraft. An example of where you might want to use this would be a zombie or skeleton xp farm. You can use this to automatically swing your sword every second or 2. Then you can leave the computer, grab some lunch, and when you come back you will have a few more levels.
Works for Java and Bedrock on Windows only.
AutoHotkey