Java class that implements a screenshot and save it to a specified folder

I do not know little friends have not encountered a screenshot using java to the needs of the specified directory to save the screenshot, there is no reflected on the desktop, completely unaware of the screen has been cut. As for how to do screenshots, some old iron may just curious to know someone is doing? And some old iron might want to do character recognition, the next step, but it is still quite useful.

Some may ask me, what are you java, they would not install a jre on someone else's computer and then run your program it, how to hide the black window? In fact, in my previous article has been made, can be packaged into a java program exe file, and a key to install as a system service, double-click on the installation, mysteriously .....

Not blind force force, following the code like similar articles can follow me, I continue back hair.

Guess you like

Origin www.cnblogs.com/GX1234/p/11947166.html