Use the
other suggestions but with a macro by playing through a game then starting the recording (AppRobot Macro Recorder is a good macro or instead
https://www.macrorecorder.com/download/ as suggested in the comments below ):
(delay, a few seconds, between each action to make up for lag)
Once on play with same players
Once to make a dot for your picture
Once to accept the picture
Once away from anywhere a click would matter
Push
pause break (approbot only) to end the recording, select loop playback and then push test playback and this will be yours over night.
Doesn't matter if your controller turns off.