#NoEnv SetDefaultMouseSpeed, 0 SetMouseDelay, -1 SendMode Input
Below is a foundational AHK script for educational use. It uses the mouse_event