def get_desktop_stats(self):
left = windll.user32.GetSystemMetrics(win32con.SM_XVIRTUALSCREEN)
top = windll.user32.GetSystemMetrics(win32con.SM_YVIRTUALSCREEN)
width = windll.user32.GetSystemMetrics(win32con.SM_CXVIRTUALSCREEN)
height = windll.user32.GetSystemMetrics(win32con.SM_CYVIRTUALSCREEN)
logging.debug("Desktop stats: Origo: {}\tSize: {}".format((left,top),(width,height)))
return left,top,width,height
评论列表
文章目录