import pyautogui

# fw = pyautogui.getActiveWindow()
# print(fw.title)
# print(fw.size)
# print(fw.left,fw.top,fw.right,fw.bottom)
# pyautogui.click(fw.left + 25,fw.top + 20)

# for w in pyautogui.getAllWindows():
#     print(w)

# for w in pyautogui.getWindowsWithTitle():
#     print(w)

w= pyautogui.getWindowsWithTitle("제목 없음")[0]
print(w)
if w.isActive == False:
    w.activate()

if w.isMaximized == False:
    w.maximize()

pyautogui.sleep(1)
w.restore()

w.close()