Closed ch3rn1k closed 2 years ago
Looks like problem in capture()
, it returns to me strange things:
I used toString to see what is inside like this Buffer.from(screen.data).toString('base64')
UPD: Used colorAt
and it return everytime ffffff
. Am I doing something wrong?
Found that problem with const desktop = new Hardware(0);
. When using 0 it always black, but if I set something like const desktop = new Hardware('Windows.UI.Core.CoreWindow');
it works fine. How can i fix using zero? Thanks
use just const desktop = new Hardware();
use just
const desktop = new Hardware();
Well yea, that works, thanks!
Hello! Awesome lib, thank you! Can you tell me how can I save
capture()
withsharp
? Everytime I'm getting black image...