You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
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 leastraw_data = cast(cursor_img.pixels, POINTER(c_ulong * region["height"] * region["width"] * 2))raw = bytearray(raw_data.contents)