Skip to content

Instantly share code, notes, and snippets.

@eagleEggs
Created February 23, 2019 19:53
Show Gist options
  • Save eagleEggs/7235b2cd0318b21ac7b9bac3e9eae273 to your computer and use it in GitHub Desktop.
Save eagleEggs/7235b2cd0318b21ac7b9bac3e9eae273 to your computer and use it in GitHub Desktop.
screen resolution related
from win32api import GetSystemMetrics
pyautogui.click(x=GetSystemMetrics(0) / 2, y=GetSystemMetrics(1) / 2)
PSG:
saveXY = values_screenshot_window
print(saveXY["ss"][0], saveXY["ss"][1])
print(screenshotWindow.CurrentLocation())
ss_win_loc = screenshotWindow.CurrentLocation()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment