Advertisement
Guest User

testfehler

a guest
Apr 11th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 1.42 KB | None | 0 0
  1. #NoTrayIcon
  2. #Region ;**** Directives created by AutoIt3Wrapper_GUI ****
  3. #AutoIt3Wrapper_Icon=Dryicons-Aesthetica-2-Folder-process.ico
  4. #AutoIt3Wrapper_Compile_Both=y
  5. #AutoIt3Wrapper_UseX64=y
  6. #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
  7. #cs ----------------------------------------------------------------------------
  8.  
  9.     AutoIt Version: 3.3.14.2
  10.     Author:         myName
  11.  
  12.     Script Function:
  13.     Template AutoIt script.
  14.  
  15. #ce ----------------------------------------------------------------------------
  16. #include <TrayConstants.au3> ; wird für die $TRAY_CHECKED und $TRAY_ICONSTATE_SHOW konstanten benötigt.
  17.  
  18. ; Script Start - Add your code below here
  19. Opt("TrayMenuMode", 3)
  20.     Local $idReset = TrayCreateItem("Reset")
  21.     TrayCreateItem("") ; Erzeugt einen Trennstrich.
  22.     Local $idSet = TrayCreateMenu ("Settings")
  23.     Local $idExit = TrayCreateItem("Exit", $idSet)
  24.  
  25.  
  26.     TraySetState($TRAY_ICONSTATE_SHOW) ; Zeigt das Traymenü.
  27.  
  28.  
  29. While 1
  30.     Switch TrayGetMsg()
  31.         Case $idReset
  32.             _Process_Reset()
  33.         Case $idExit
  34.             Exit
  35.     EndSwitch
  36. WEnd
  37.  
  38.  
  39. Func _Process_Reset()
  40.     $Procez_Name = "Explorer.exe"
  41.     $DO = 1
  42.     Do
  43.         ProcessClose($Procez_Name)
  44.         If ProcessExists($Procez_Name) Then
  45.             ;Procezz existiert
  46.             ToolTip("Explorer wird geschloßen.", 20, 20)
  47.         Else
  48.             ;Prozess existiert nicht
  49.             $DO = 0
  50.         EndIf
  51.     Until $DO = 0
  52.  
  53.     ShellExecute(@WindowsDir & "\" & $Procez_Name)
  54. EndFunc   ;==>_Process_Reset
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement