-
-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Detect multiple Screens #7
Comments
@tionis This is something I would want to implement. It would be hard for me to implement this as I don't use multi-displays. Although, I think |
it returns the complete size - like if you made a screenshot of all screens at once at just got the size from it |
I can verify this. This is also in line with the behaviour I experienced with other automation libraries |
I think that's just how it was made. You would probably need to implement a different approach per system as I think win and linux will have a different system (in linux, you could probably just read xrandr config, don't know about windows) |
Could you confirm |
moveMouse works correctly, there's no need for negative values since the position is always positive. |
Alright. So I guess there's no problem with Dual screens supporting autopilot. Just detecting it is an issue. |
A nice think would be to have a method return array of screens (like with name, size etc) |
But we don't actually have a way to do that. The low level C libs used don't provide that information. |
I know you can get that info on linux from |
https://github.com/greshake/i3status-rust/blob/master/src/blocks/xrandr.rs Yes! I think we could do something similar as here |
So I've used pilot.getMonitors(); This will be available in the next release. |
Now, the challenge is to make it cross-platform. Any suggestions and PRs are welcomed. |
https://github.com/divy-work/autopilot-deno/releases/tag/v0.1.1 makes it cross-platform (hopefully). It's quite unstable and would require to cross-check from Windows and Mac users. Closing this issue as the feature is implemented |
A function to detect if there are multiple displays would be much appreciated. Maybe even the Orientation of these.
The text was updated successfully, but these errors were encountered: