code:H = GetForeGroundWindow() if (IsWindowVisible(H) and not IsIconic(H) and IsZoomed(H)) then window is Fullscreen