def JudgeWindowSize(hwnd):
    screen = QApplication.primaryScreen()
    pix = screen.grabWindow(hwnd).toImage().convertToFormat(QImage.Format.Format_RGBA8888)
    print((pix.width(), pix.height()))
    if ((pix.width() == 1920) and (pix.height() == 1080)):
        return 1
    if ((pix.width() == 1366) and (pix.height() == 768)):
        return 1
    if ((pix.width() == 1280) and (pix.height() == 720)):
        return 1
    return 0
def JudgeWindowSize(hwnd):
    screen = QApplication.primaryScreen()
    pix = screen.grabWindow(hwnd).toImage().convertToFormat(QImage.Format.Format_RGBA8888)
    print((pix.width(), pix.height()))
    if ((pix.width() == 1920) and (pix.height() == 1080)):
        return 1
    if ((pix.width() == 1366) and (pix.height() == 768)):
        return 1
    if ((pix.width() == 1280) and (pix.height() == 720)):
        return 1
    return 0