1. Introduction
Autoshot is a proof of concept utility to automate taking of screenshots. The idea is that screenshots can be automated for each locale.
You may view a screencast online of how this works, thanks to Don Scorgie. You may also download the screencast.
2. Script
If you want to test the script, be sure to save it in a directory named "help" with "./C" and "./C/figures" subdirectories.
# Original author : Karderio (: I release this script into the Public Domain :) from dogtail.procedural import * def shoot(window, name): import os os.system("import -window \"%s\" -frame %s" % (window, name)) # Start attax run('gataxx') #Take screenshot of main window shoot("Ataxx", "./C/figures/ataxx.png") # Open Settings menu click('Settings') # Open Preferences dialog click('Preferences') #Take screenshot of Preferences dialog shoot("Ataxx Preferences", "./C/figures/ataxx_preferences.png") # Close Preferences dialog click('Close') # Close gattax click('Game') click('Quit')
3. ToDo
Please don't hesitate to add feature requests here :
- Make it do shots for each locale
- Take a shot of just an area of the screen
- Optional ragged edges when taking a shot of an area
- Maybe a simple description language for taking shots with very few functions : open/close, click and shoot