Sep-28-2020, 07:02 PM
I need help with the reading the mouse position on each HDMI.
I have two HDMI outputs.
I need like this:
One reading mouse X Y on HDMI 0
AND
One reading mouse X Y on HDMI 1.
my issue is the reading mouse does sub from HDMI-0 and HDMI-1.
HDMI-0 supposed be up to 480 x 800.
HDMI-1 supposed be up to 1920 x 1080.
when I move the mouse to second HDMI it show me over 1920 x 1080 like 2037 x 1223 which I do not want that.
here the EXAMPLE of code in my goal is:
I know that code is not working but need help.
THANKS!
I have two HDMI outputs.
I need like this:
One reading mouse X Y on HDMI 0
AND
One reading mouse X Y on HDMI 1.
my issue is the reading mouse does sub from HDMI-0 and HDMI-1.
HDMI-0 supposed be up to 480 x 800.
HDMI-1 supposed be up to 1920 x 1080.
when I move the mouse to second HDMI it show me over 1920 x 1080 like 2037 x 1223 which I do not want that.
here the EXAMPLE of code in my goal is:
1 2 3 4 5 6 7 8 9 |
from pynput.mouse import Controller mouse = Controller mouse_in_HDMI_0 = mouse.position.hdmi - 0 print ( "HDMI0 mouse:" + str (mouse_in_HDMI_0)) mouse_in_HDMI_1 = mouse.position.hdmi - 1 print ( "HDMI1 mouse:" + str (mouse_in_HDMI_1)) |
THANKS!