adamn / python-webkit2png

Python script that takes screenshots (browsershots) using webkit
Other
938 stars 201 forks source link

Capture is not only of QT/Bowser Window #56

Open jleidigh opened 9 years ago

jleidigh commented 9 years ago

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!

munum commented 9 years ago

I'm having the same issue when used with the option "-W".