I am currently making a program that will behave differently depending if the Foreground Window is CMD-like or GUI. How would I go about getting this information though?
win32gui.GetWindowType(win32gui.GetForegroundWindow())
or something similar is what I'm looking for.