Nov-12-2018, 10:10 AM
hey there ...
im writing a code to check the windows title ... but i need it to loop and wait if active windows changed print the title for the new active window ?
this is my code :
im writing a code to check the windows title ... but i need it to loop and wait if active windows changed print the title for the new active window ?
this is my code :
from win32gui import GetWindowText, GetForegroundWindow from time import sleep while True: sleep(1) qan = GetWindowText(GetForegroundWindow()) print qan