FS#10571 - Automatic screenshot generation (for the manual)
Attached to Project:
Rockbox
Opened by Jonas Häggqvist (rasher) - Sunday, 30 August 2009, 02:07 GMT
Last edited by Jonas Häggqvist (rasher) - Sunday, 30 August 2009, 02:15 GMT
Opened by Jonas Häggqvist (rasher) - Sunday, 30 August 2009, 02:07 GMT
Last edited by Jonas Häggqvist (rasher) - Sunday, 30 August 2009, 02:15 GMT
|
DetailsThese two scripts will, if you run them appropriately generate a few screenshots in an automatic fashion. Execute it like this, from inside a simulator: ./genscreenshots e200.xte /path/to/output
There are a few pitfalls: * The simulator window MUST gain focus when it is run. If this doesn't happen, everything breaks. Horribly. * The method is rather timing sensitive. I had to put a pause of 250ms between each keypress to make sure they registred (too fast, and the sim/SDL would discard them). 250ms may not be the right amount for your computer. * Rockbox itself is also timing sensitive. If you "push" a button at the wrong time, it may not register, so use plenty of sleeps to make sure things are settled. Edit: Oops, the first version had a hardcoded filename. Hopefully of such things. |
You'll notice the command list is littered with SLEEPS. This is to make it more stable, since Rockbox seems to randomly eat button presses - especially, it seems, while setting up menus. And yet, things are still not entirely predictable. Sometimes an event will go missing, and things blow up. Also amusingly, sometimes 2 screenshots will be created, messing up the entire thing.
That said, the attached *has* managed to correctly generate a set of screenshots for me.