w,h = pyautogui.size() W is integer width, H is integer height
Per https://www.askpython.com/python/examples/retrieve-screen-resolution-in-python
Took me a while to find it.