79479033

Date: 2025-03-02 11:56:08
Score: 1
Natty:
Report link

The important thing is to pass the variable 'with_cursor' in mss()

from mss import mss
sct = mss(with_cursor=True)
bounding_box = {'top': 0, 'left': 1366, 'width': 1366, 'height': 768}
im_brg = sct.grab(bounding_box)

with_cursor Include the mouse cursor in screenshots.

New in version 8.0.0.

https://python-mss.readthedocs.io/api.html

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: R R