I'm trying get screen capture through a SSH connection. In this SSH connection, I'm using the normal user. (in my case its PC)
I found that after executing this command:
screenshot-cmd -o test.jpg
and the same is with
screencapture test.jpg
the jpg file I got is all black. If I do this in the normal way (not through SSH), then I can get the screen capture successfully.
I tried to do it with task scheduler it works good, but it shows the command window, so I checked the option Run whether user is logged in or not
and it doesn't show the command window at all, but then I have the problem with the black image.
What could be causing this?
I already googled for hours but didn't find something to work.