-
-
Notifications
You must be signed in to change notification settings - Fork 112
Cursor capture not working, but with a twist #495
Copy link
Copy link
Open
Description
Hello,
I cannot capture the cursor via setting the parameter with_cursor=True in mss(), even in the last released version, but I found a solution and I can get the cursor, but it appears four times, because of a cast of c_ulong. If I come up with a solution, I might come back to create PR.
On a linux setup, installed here: (../python3.10/site-packages/mss/linux.py)
# Added * 2 to get cast correctly at least
raw_data = cast(cursor_img.pixels, POINTER(c_ulong * region["height"] * region["width"] * 2))
raw = bytearray(raw_data.contents)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels