#cs GUIInvisible Funktion by PrideRage Funktion: Macht ein GUI (Un)Sichtbar. Erklärungen: $hWnd = Variable des GUIs $Bool: True = Unsichtbar (Standard) False = Sichtbar $HotKey: Der HotKey, um das GUI Sichtbar zu machen Standard: Unbelegt Errors: 1 = $Bool ist ein Bool(Also nicht True oder False) 2 = $hWnd ist kein GUI Autor: PrideRage #ce Func GUIInvisible($hWnd, $Bool = True, $HotKey = "") If IsHWnd($hWnd) Then If IsBool($Bool) Then If $Bool = True Then GUISetState(@SW_HIDE) Opt("TrayIconHide", 1) If $HotKey <> "" Then HotKeySet($HotKey, "GUIHKVisible") EndIf ElseIf $Bool = False Then GUISetState(@SW_SHOW) Opt("TrayIconHide", 0) EndIf Else SetError(1) EndIf Else SetError(2) EndIf EndFunc #cs GUIHKVisible Macht das GUI durch HotKey sichtbar #ce Func GUIHKVisible() GUISetState(@SW_SHOW) Opt("TrayIconHide", 0) EndFunc