def _grab_verify_code(self):
verify_code_hwnd = win32gui.GetDlgItem(self.login_hwnd, 0x56ba)
self._set_foreground_window(self.login_hwnd)
time.sleep(1)
rect = win32gui.GetWindowRect(verify_code_hwnd)
return ImageGrab.grab(rect)
评论列表
文章目录