# Processing window not showing in screenshot

**URL:** <https://discourse.processing.org/t/processing-window-not-showing-in-screenshot/2009>\
**Category:** Processing for Pi\
**Created:** [July 23, 2018, 10:54am UTC](https://discourse.processing.org/t/processing-window-not-showing-in-screenshot/2009 "2018-07-23T10:54:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ben\_suddenly](https://avatars.discourse-cdn.com/v4/letter/b/e56c9b/32.png) [@ben\_suddenly](https://discourse.processing.org/u/ben_suddenly)\
**Post date:** [July 23, 2018, 10:54am UTC](https://discourse.processing.org/t/processing-window-not-showing-in-screenshot/2009/1 "2018-07-23T10:54:42Z")

</div>

after i finally got everything running reasonably well i’ve noticed that when i take a screenshot of the full desktop the processing sketch window is black

 ![2018-07-23-105926_1920x1080_scrot](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/1X/c76d821291005ba54f786215906e67154203c26f.png)

button.py is running scrot (in terminal) on button press, which ive never had a issue with before so it seems to be the sketch window, is there any way i can fix this, and other screen capture that will work?

//raspberry pi 3, processing and terminal are being used here

cheers and any help would be greatly appreciated

---

<div class="post-metadata">

**Author:** ![TfGuy44](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/tfguy44/32/41_2.png) [@TfGuy44](https://discourse.processing.org/u/TfGuy44)\
**Post date:** [July 23, 2018, 4:59pm UTC](https://discourse.processing.org/t/processing-window-not-showing-in-screenshot/2009/2 "2018-07-23T16:59:40Z")

</div>

Weird. I know of several programs that do this. My computer’s Netflix app does it, for example. I don’t know what the exact cause is, but it’s probably something your-computer-related, not something Processing is doing.

You can always use `saveFrame()` to grab an image of your sketch. That works at least, right?

---

<div class="post-metadata">

**Author:** ![monkstone](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/monkstone/32/64_2.png) [@monkstone](https://discourse.processing.org/u/monkstone)\
**Post date:** [July 23, 2018, 6:52pm UTC](https://discourse.processing.org/t/processing-window-not-showing-in-screenshot/2009/3 "2018-07-23T18:52:31Z")

</div>

My guess is the sketch is opengl (P2D or P3D) and so transparent to scrot when using the default renderer.  
[https://www.raspberrypi.org/forums/viewtopic.php?t=142623](https://www.raspberrypi.org/forums/viewtopic.php?t=142623) might be useful?

---

<div class="post-metadata">

**Author:** ![monkstone](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/monkstone/32/64_2.png) [@monkstone](https://discourse.processing.org/u/monkstone)\
**Post date:** [July 25, 2018, 9:19am UTC](https://discourse.processing.org/t/processing-window-not-showing-in-screenshot/2009/4 "2018-07-25T09:19:13Z")

</div>

I tried the raspi2png app in link above and it does work see screenshot of picrate sketch below:-

 ![snapshot](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/1X/041b9d13233a4c88eeaa7283bf6d0000d6dec2bc.jpg)

---

<div class="post-metadata">

**Author:** ![ben\_suddenly](https://avatars.discourse-cdn.com/v4/letter/b/e56c9b/32.png) [@ben\_suddenly](https://discourse.processing.org/u/ben_suddenly)\
**Post date:** [July 25, 2018, 12:39pm UTC](https://discourse.processing.org/t/processing-window-not-showing-in-screenshot/2009/5 "2018-07-25T12:39:43Z")

</div>

cheers for the help that works great, now i need to stop it overwriting the images. as far as i know this should work

import time  
import datetime  
import subprocess

def take\_photo():  
print (“taking photo”)  
print (“1”)  
imagepath=datetime.datetime.now().strftime("%m\_%d\_%Y\_%H\_%M\_%S")  
print (“2”)  
subprocess.call ([“raspi2png -p, (imagepath)”])  
print (“3”)  
print(“PHOTO\_saved\_to\_path”)

but it stops the script at print(“2”) any idea whats wrong with the subprocess call or is it more complex than i think?

cheers again

---

<div class="post-metadata">

**Author:** ![RIN67630](https://avatars.discourse-cdn.com/v4/letter/r/7bcc69/32.png) [@RIN67630](https://discourse.processing.org/u/RIN67630)\
**Post date:** [January 15, 2020, 2:40pm UTC](https://discourse.processing.org/t/processing-window-not-showing-in-screenshot/2009/7 "2020-01-15T14:40:45Z")

</div>

The window will also not appear on a VNC remote client.  
It shows only a black box. That is really problematic.

Thank you for considering.
