Hallo
versuchs doch so:
Spoiler anzeigen
Opt("TrayMenuMode", 1) ; Standard Traymenüeinträge (Skript pausieren/beenden) werden nicht angezeigt.
Opt("TrayIconHide", 0)
$odir = "c:\DeinPfad"
$oparameter = 1
Oberflaeche()
Func Oberflaeche()
;"buttons fürs gui"
[/autoit] [autoit][/autoit] [autoit]$tstart = TrayCreateItem("Start TF2")
TrayCreateItem("")
$tcut = TrayCreateItem("Cut")
$tuncut = TrayCreateItem("Uncut")
TrayCreateItem("")
$topen = TrayCreateItem("Öffnen")
$tclose = TrayCreateItem("Beenden")
;GUISetState(@SW_SHOW)
TraySetState()
While 1
;$msg = GUIGetMsg()
$tmsg = TrayGetMsg()
;Select
[/autoit] [autoit][/autoit] [autoit];"Aufrufe für das gui."
[/autoit] [autoit][/autoit] [autoit];EndSelect
Switch $tmsg
case 0
ContinueLoop
Case $topen
GUISetState(@SW_SHOW)
GUISetState(@SW_RESTORE)
Opt("TrayIconHide", 1)
Case $tclose
If FileExists($odir & "\Blutpatch\ClientRegistry.blob") Then
FileMove($odir & "\Blutpatch\ClientRegistry.blob", $odir & "\", 1)
EndIf
Exit
Case $tcut
MsgBox(0, "", "Cut")
FileMove($odir & "\Blutpatch\ClientRegistry.blob", $odir & "\", 1)
Case $tuncut
MsgBox(0, "", "UnCut")
If FileExists($odir & "\Blutpatch\ClientRegistry.blob") Then
FileMove($odir & "\Blutpatch\ClientRegistry.blob", $odir & "\", 1)
EndIf
FileMove($odir & "\ClientRegistry.blob", $odir & "\Blutpatch\", ![]()
Case $tstart
MsgBox(0, "", "Start")
ShellExecute($odir & "\Steam.exe", "-applaunch 440 " & $oparameter)
EndSwitch
WEnd
EndFunc ;==>Oberflaeche
mfg (Auto)Bert