📸 In the CHDK project we use scripted keypresses to control an old Canon camera. I could imagine a loop like repeat printscreen(layer) sleep(delay) click (">") until done https://chdk.fandom.com/wiki/CHDK