1.8.2 • Published 6 years ago

@digitalattitude/getclickedcolor v1.8.2

Weekly downloads
9
License
MIT
Repository
-
Last release
6 years ago

GetClickedColor

ListenForClick

Calls the provided callback every time that the user clicks anywhere on the screen. The callback is called with the clicked color (RGB).

GetPixelColor

Gets the color of a pixel at a given position.

Testing

$ node-gyp rebuild $ node example.js

Tested with node 9 on Windows 10, 64 bit.

Usage

$ npm install @digitalattitude/getclickedcolor $ npm rebuild

const getClickedColor = require("@digitalattitude/getclickedcolor").eventProvider;
getClickedColor.on('click', ({ color, position }) => { /* ... */ })

Tested with node 9 on Windows 10, 64 bit.

Credits

Inspired by https://nodejs.org/api/addons.html#addons_callbacks Clicks to some windows, most notably the Task Manager, cannot be tracked (probably applies to all topmost windows).

License

MIT

1.8.2

6 years ago

1.8.1

6 years ago

1.8.0

6 years ago

1.7.0

6 years ago

1.6.0

6 years ago

1.4.0

6 years ago

1.3.0

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago