prüfen, ob Programm geöffnet ist