Krombik / keysender

Node.js Desktop Automation for Windows.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`capture()` broken from 2.1.0

ch3rn1k opened this issue · comments

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');

should be fixed in 2.1.2