Answer the question
In order to leave comments, you need to log in
How to take a screenshot of a game in python?
I'm making a telegram bot that sends a screenshot of the screen. I use the mss library. It screenshots the desktop normally, but when the game is running (cs 1.6), it just sends a black screen. Is it possible to take a screenshot of a game in python?
Answer the question
In order to leave comments, you need to log in
it's simple but i don't know how it will work for you
import pyautogui
image = pyautogui.screenshot("screen.png", region=(0, 0, 300, 400))
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question