Python bekommen konzentriertes Fenster
from win32gui import GetWindowText, GetForegroundWindow
print(GetWindowText(GetForegroundWindow()))
Good Gentoo
from win32gui import GetWindowText, GetForegroundWindow
print(GetWindowText(GetForegroundWindow()))