Open hyc1743 opened 6 years ago
Windows 还是 macOS 呢?macOS上你可以用 Automator 做个截图并运行 Python 的脚本来帮助你。
@hyc1743PIL.ImageGrab.grab(bbox=None)
Take a snapshot of the screen. The pixels inside the bounding box are returned as an “RGB” image on Windows or “RGBA” on macOS. If the bounding box is omitted, the entire screen is copied.
我用的ImageGrab.grab
我用的spy++ 获取句柄,win32gui 截的图