Registry / utility / win32screenshot

win32screenshot

JSON →
library5.0.0rbrubygemsunverified

Capture screenshots on Windows with Ruby to BMP, GIF, JPG, or PNG formats.

gem install win32screenshot
INSTALL
IMPORT
SIG · WIN32SCREENSHOT
W
win32screenshot
utilityrubyv5.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Win32::Screenshot
require 'win32screenshot'

Capture the foreground window screenshot

require 'win32screenshot' bitmap = Win32::Screenshot::Take.of(:foreground) bitmap.save('screenshot.png')
Debug
Known issues
breakingOnly works on Windows operating systems
fix
Ensure your application runs on Windows or use conditional require
affects: >= 0
Upgrade
Version history
5.0.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
12
Resources
win32screenshot — gem install win32screenshot · libregistry