Func _MyTrayIcon ($IconFile = $MyScriptIcon, $IconNr = 0) #NoTrayIcon ; prevents the standard AutoIt icon from being shown right from the start ;;;;;;;;;;;; wirkt leider auch außerhalb dieser Funktion If $IconFile = "shell32" OR $IconFile = "shell32.dll" Then $IconFile = @SystemDir & "\shell32.dll" If FileExists ($IconFile) Then TraySetIcon ($IconFile, $IconNr) Return 1 Else TraySetIcon() ; Shows the standard AutoIt icon (and of course returns 0) EndIf EndFunc Sleep (3000) MsgBox (0, "Und?", "Hat man ein Symbol gesehen?")