Skip to content

Commit

Permalink
Merge pull request #378 from CL4R3T/main
Browse files Browse the repository at this point in the history
Enable screenshot on multiple monitors
  • Loading branch information
moesnow authored Nov 21, 2024
2 parents 465c069 + f15d321 commit 9aa02a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions module/automation/screenshot.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from PIL import Image
import pyautogui
import win32gui
from PIL import Image


class Screenshot:
Expand Down Expand Up @@ -43,7 +43,7 @@ def take_screenshot(title, crop=(0, 0, 1, 1)):
int(top + height * crop[1]),
int(width * crop[2]),
int(height * crop[3])
))
), allScreens=True)

real_width, _ = Screenshot.get_window_real_resolution(window)
if real_width > 1920:
Expand Down

0 comments on commit 9aa02a2

Please sign in to comment.