A macro that presses A and D in the right order rarely makes mistakes. I did it at 1920 x 1080 resolution 4 by 3
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