This site has been retired. For up to date information, see handbook.gnome.org or gitlab.gnome.org.


[Home] [TitleIndex] [WordIndex

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 :


CategoryDocumentationProject


2024-10-23 10:59