I don't think it's worth writing a lot, it's a simple macro that clicks the scheme for you at the right time. To do this, you need to go and run a macro and it will do everything for you. The macro was written on a 1920x1080 monitor
Download the program (Download) and go to the macro editor
press the button «Open file»
and select the downloaded file
assign a macro to a key and run the program