Python Forum
Read mouse position on separate between two HDMIs
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Read mouse position on separate between two HDMIs
#1
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:
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))
I know that code is not working but need help.
THANKS!
Reply
#2
Do the python have code to read which HDMI the mouse is on?
Like when I move the mouse to HDMI-1 then the print tell me it is HDMI-1 and if I move to HDMI-0 then it tell me it's HDMI-0...

thanks!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  importing functions from a separate python file in a separate directory Scordomaniac 3 1,365 May-17-2022, 07:49 AM
Last Post: Pedroski55
Photo i want to locate an image according to the mouse position rachidel07 1 2,820 Feb-08-2021, 03:29 PM
Last Post: michael1789
  mouse position biprabu 3 2,032 Sep-09-2020, 08:21 PM
Last Post: deanhystad
  Move mouse and click in particular position biprabu 3 2,486 Sep-01-2020, 08:23 PM
Last Post: deanhystad
  mouse 0.7.0 - mouse polling hate 125-1000hz penahuse 1 2,511 Dec-06-2019, 09:51 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020