Help needed in creating a python script

Since i am almost 0 in python scripting - i programmed some time in C#… i would like to ask if there is a possibility to make a script to take a screenshot of the slave desktop ?
It would be quite convenient when there is a big image rendering going on , and instead of connecting remotely each time (and sometimes it can take up to 2-3 minutes to connect) - just run a screenshot script.
How complicated is to do this ?

I wrote one in perl about six years ago. It used VNC though.

It looks like you could try using the PyQt things we bundle with Deadline to get the screenshot: (we use PyQt5 however)
stackoverflow.com/questions/2505 … -with-pyqt

So it seems pretty doable, I don’t have much time to look into this though. Anyone else want to give it a try?

I wonder if this would be a nice small feature to add to Deadline 7.2 service pack or 8-th version ?
It actually can be pretty useful , for example you can set up to screenshot every 2-3 hrs with compressed PNG and throw those to dropbox , just to monitor things , instead of connecting with any remote software.

I’ll ask. I’m a bit concerned (as I was when I wrote our tool) that it could be used to spy on normal users. In this case anyone who happens to be running the Slave locally could be a target of unwanted viewing.

I’m going to say our official stance is ‘no’ on this, but I’ll have an honest discussion about it internally.

Thanks for that , Edwin.
I am just trying to optimize things , you know when scene takes 40gb of RAM and it takes about a minute to connect via RDP to check if everything is oke - that can be a bit frustrating - that’s the main target.
I am pretty sure there is a solution to prevent “spying” :slight_smile: