ScreenShot 和图像识别
这些功能将帮助你截取屏幕截图,并将图像与屏幕的一部分相匹配。
.screenshot('c:\\path') #get the screenshot.
.locateOnScreen('c:\\path') #search that image on screen and get the coordinates for you.
locateCenterOnScreen('c:\\path') #get the coordinate for the image on screen.