First thanks very much for the code!!! Works great for single/manual captures but....
I am executing the code on OSX Yosemite.
If I force focus to the python-QT app by clicking its window BEFORE the "screen shot" is captured it works perfectly BUT if I simply launch the webkit2png script from my terminal app and DO NOT force focus to python-QT, the terminal app (currently in the foreground) is actually included as part of the generated screen capture.
This prevents me from using the app in an automated fashion to capture a list of URLs. Is it possible to programmatically force focus?
First thanks very much for the code!!! Works great for single/manual captures but....
I am executing the code on OSX Yosemite. If I force focus to the python-QT app by clicking its window BEFORE the "screen shot" is captured it works perfectly BUT if I simply launch the webkit2png script from my terminal app and DO NOT force focus to python-QT, the terminal app (currently in the foreground) is actually included as part of the generated screen capture.
This prevents me from using the app in an automated fashion to capture a list of URLs. Is it possible to programmatically force focus?
Thanks again!