Describe the bug
Installed as Windows service the "screenshot-desktop" package takes always 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?
Describe the bug Installed as Windows service the "screenshot-desktop" package takes always 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?