How to Get a Window or Fullscreen Screenshot in Python 3k? (without PIL)

后端 未结 4 1313
醉酒成梦
醉酒成梦 2020-12-05 01:05

With python 3, I\'d like to get a handle to another window (not part of my application) such that I can either:

a) directly capture that window as a scre

4条回答
  •  攒了一身酷
    2020-12-05 01:38

    The solution here gets a screenshot of a single Window (so can work if the Window is in the background).

    Other solutions of this page take picture of the part of the screen the window is on, and thus need to bring the Window to the front first.

    Python Screenshot of inactive window PrintWindow + win32gui

提交回复
热议问题