Hi,
etwas eleganter sieht es so aus ...
Spoiler anzeigen
[autoit]
Run("Notepad.exe")
#NoTrayIcon
WinWait("Unbenannt")
MsgBox(0,"","Klicke auf OK um den Editor zum Tray zu minimieren...")
TraySetIcon("Notepad.exe")
WinSetState("Unbenannt","",@SW_MINIMIZE)
WinSetState("Unbenannt","",@SW_HIDE)
Opt("TrayIconHide",0)
[/autoit] [autoit][/autoit] [autoit]MsgBox(0,"","Klicke auf OK um den Editor wieder zu zeigen...")
WinSetState("Unbenannt","",@SW_SHOW)
Opt("TrayIconHide",1)
MsgBox(0,"","Erfolgreich!")
Gruß