Python Forum

Full Version: Screen Shots with mouse cursor
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I am currently using MSS module to get screenshots of monitor and create a video using them. But MSS or PIL or pyscreenshot libraries do not capture mouse cursor as part of screenshot because it's in different layer.

Is there any module which can help me get screenshots with mouse cursor in the image?

Thanks,
Anurag Kumar
I think there might be something here: https://pypi.python.org/pypi/pynput
Hi Larz60,

I think you got me wrong. I want a module which can take screenshot of my desktop screen including mouse cursor. If you take screenshot of your monitor in windows (using print screen button from keyboard), you can see the mouse cursor in the image as well. But the screenshots taken by MSS/PIL etc modules do have have mouse cursor in image.

So, can someone suggest any python library which takes screenshot including mouse cursor?

Thanks,
Anurag
OK, now I understand,
I don't know of anything specific, but with the package I posted, you could get the x, y position of the cursor and redraw it.
Or, search msdn for windows dll that captures screen.