The following code makes you capture the screenshot with Python. As you know, the beauty of Python is that you can make so many things with a little of code, if you know what to do. Let’s see how we can make a simple copy of the screenshot and save it as a bmp. Next time we will do something a little more complex.
Install lackey and mouse
To use it you need PIL (I think you have it) and you need to install lackey. As there is a deprecated module (keyword) from wich is imported mouse, we install mouse package directly and then change the line of code that imports keyboard, as you can see in the following video.
So, now you got a tool that easily can make you save the screenshot. In windows there are tools that can make this, but with python you can easily automate this feature to create something interesting. Maybe in the nexr days we will create something cool starting from these simple lines. So, stay tuned for the next utility or other Python code stuff.