rdev icon indicating copy to clipboard operation
rdev copied to clipboard

[Feature request] Support for multi monitor setups

Open MrTanoshii opened this issue 2 years ago • 1 comments

Test setup

Win10, Win11 2 monitors, main landscape 1080p, secondary portrait 1080 on the right side.

Problem

Code_ZtIVzCvaNu

The mouse destination does not match the intended location because or device_query using coordinates relative to the main screen (can be negative) while rdev uses absolute (top left is 0,0).

The MouseMove is attempting to get to y=-802 instead of y=-222 but gets stuck at y=-580 (the top most of my secondary screen)

There currently does not exist a method to query the secondary screen sizes to allow the conversion from the relative->absolute and vice versa.

Proposal

  • Add functionality to be able to query display sizes of secondary displays

More info

https://github.com/MrTanoshii/rusty-autoclicker/issues/47

MrTanoshii avatar Apr 19 '23 00:04 MrTanoshii

PRs are welcome, but it's likely to be a major undertaking given we need support for all OSes and the various ways to handle multi screen.

Narsil avatar Apr 19 '23 09:04 Narsil