Closed ch3rn1k closed 1 year ago
After updating to >= 2.1.0 .capture() method now makes black screen Example code:
.capture()
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
After updating to >= 2.1.0
.capture()
method now makes black screen Example code: