Python ctypes erhalten Sie ein aktuelles Fenster
import ctypes
window = ctypes.windll.user32.GetForegroundWindow()
Strange Salmon
import ctypes
window = ctypes.windll.user32.GetForegroundWindow()