octalmage / robotjs

Node.js Desktop Automation.
http://robotjs.io
MIT License
12.3k stars 949 forks source link

Migrate screen.h to chromium screen implementation #612

Open Programmnix opened 3 years ago

Programmnix commented 3 years ago

Hello,

I suggest to move to the chromium implementation to retrieve all information's about the screen. (https://github.com/chromium/chromium/blob/master/ui/display/screen.h)

This implementation allows to provide standard cross platform implementation to retrieve all screens. Electron is providing this per default (https://www.electronjs.org/docs/api/screen). I'm using theses screen sizes in my project with the combination of my fork to control the mouse and capture the screen. This is working quite well for multiple monitors across all platforms.

What are you thinking?