Fixes #766 /claim #766
What kind of change does this PR introduce?
Feature
Summary
This PR introduces support for multi-monitor setups in the take_screenshot
function. It includes the following changes:
get_current_monitor
to determine the monitor where the cursor is currently located.take_screenshot
to use get_current_monitor
for capturing the correct monitor.take_screenshot
with multiple monitors.get_current_monitor
and mss.mss
in tests to simulate multiple monitor configurations.take_screenshot
correctly handles multiple monitors and returns the expected screenshot.Checklist
How can your code be run and tested?
To run and test the code:
pytest
:pytest tests/openadapt/test_monitors.py
Other information
No additional context needed.
David Anyatonwu
@onyedikachi-david
OpenAdaptAI
@OpenAdaptAI