You can record an input event, say you click on the right side of the screen to turn a page, do:
Code:
cat /dev/input/event1 > /tmp/event
Then, whenever you want, you can just 'replay' it with
Code:
cat /tmp/event > /dev/input/event1
.
This, maybe, could be a path to explore.