imagecapture (<window name>, <output file>, (opt)<resolution-x>, (opt)<resolution-y>, (opt)startx, (opt)starty)
Capture snap-shot of the window. Where startx & starty are offset
Refer: http://webcvs.freedesktop.org/ldtp/ldtp/python/ldtputils.py
from ldtputils import *
imagecapture ('Terminal', 'out.png') # out.jpg will be created in current directory. Give absolute path to save it in some other directory.
- Note:
- Window title name is case sensitive
Digwin binary - http://sourceforge.net/projects/ltfx
Import utility of ImageMagick - http://www.imagemagick.org/script/import.php
- Author:
- Nagashree <mnagashree@novell.com>
Linux Desktop Testing Project