count = 0 notifier = emu.add_machine_frame_notifier(function() count = count + 1 if count == 300 then manager.machine.video:snapshot() end if count == 600 then manager.machine.video:snapshot() end if count == 1200 then manager.machine.video:snapshot() end if count == 1200 then manager.machine:exit() end end)