Another Hotkey Trainer (Help plz)

Hello, i want to develop a new hotkey trainer similar to this one

One that focuses on the most common actions during a game like:

*Defend a raid
*set new gathering points (mines, lumber)
*build farms
*command army

All at the same time,
Ideally it would be an infinite loop scenario with those events happening at random with increased speed at increased difficulty
How would you do it?

i thought about something similar to the starcraft scenario, with a lot of workers and bases with enemies spawning at random places and some sort of trigger that forces you to create new resource points