You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Installed as a Windows service the screenshot is always a black image instead of the actual screen.
To Reproduce 1
Steps to reproduce the behavior:
Have a server.js with screenshot-desktop
Run server.js with node-windows
Now the screenshot is just a black image
To Reproduce 2
Steps to check when it works:
Have a server.js with screenshot-desktop
Run server.js without node-windows (in command line)
Now the screenshot is correct
Expected behavior
The image should ALWAYS contain the current screen.
Environment (please complete the following information):
Window Server 2019 (but same also on usual Windows 10)
Latest node packages
Additional context
This is the command I installed the screenshot server
var Service = require('node-windows').Service;
var svc = new Service({
name: 'Screenshot tool',
script: 'C:\\path\\server.js'
});
svc.on('install', function(){
svc.start();
});
svc.install();
Idea
So far what I have seen that the issue is the session ID. So the session 0 is never a real user. So it always stays black.
But maybe to set the resolution somewhere or changing the session ID? Is that possible maybe in this node package directly?
The text was updated successfully, but these errors were encountered:
Hi @kwoxer, thanks for the detailed report. I'm afraid I've just closed an issue covering the same at #185. A PR would be welcome if you find a way to solve it but shall close this as per the last comment on #185. If there's an option in the service setup to run as a particular user this may help but I believe when I tried it was still sandboxed away from the "real" desktop session.
Describe the bug
Installed as a Windows service the screenshot is always a black image instead of the actual screen.
To Reproduce 1
Steps to reproduce the behavior:
server.js
withscreenshot-desktop
server.js
withnode-windows
To Reproduce 2
Steps to check when it works:
server.js
withscreenshot-desktop
server.js
withoutnode-windows
(in command line)Expected behavior
The image should ALWAYS contain the current screen.
Environment (please complete the following information):
Additional context
This is the command I installed the screenshot server
Idea
So far what I have seen that the issue is the session ID. So the session 0 is never a real user. So it always stays black.
But maybe to set the resolution somewhere or changing the session ID? Is that possible maybe in this node package directly?
The text was updated successfully, but these errors were encountered: