Krombik / keysender

Node.js Desktop Automation for Windows.
MIT License
75 stars 6 forks source link

`capture()` broken from 2.1.0 #10

Closed ch3rn1k closed 1 year ago

ch3rn1k commented 1 year ago

After updating to >= 2.1.0 .capture() method now makes black screen Example code:

import { Hardware } from 'keysender';
import sharp from 'sharp';

const desktop = new Hardware();
const screenCapture = desktop.workwindow.capture();

sharp(screenCapture.data, {
  raw: {
    width: screenCapture.width,
    height: screenCapture.height,
    channels: 4
  }
}).toFile('123.png');
ch3rn1k commented 1 year ago

Screenshoot 22 11 2022 14 24

Krombik commented 1 year ago

should be fixed in 2.1.2