Hallo
ich habe ein kleines problem bei meinem tool.
ich habe ein tool gemacht der bestimmte prozesse in einer box anzeigen läst so so weit so gut nur ich will wen man den process anklickt und auf dem button hide klickt das dann das fenster in der taskleiste verschwindet und bei show wieder anzeigen läst wie mache ich das? hier der code
[autoit]#include <GUIConstants.au3>
#include <GuiListView.au3>
#include <Array.au3>
#include <GUIConstantsEx.au3>
#include <TreeViewConstants.au3>
#include <WindowsConstants.au3>
$Form1 = GUICreate("Sbot Hidder © 2009-2010", 417, 425, 1030, 266)
$Group1 = GUICtrlCreateGroup("Menü", 8, 8, 401, 369)
$Button1 = GUICtrlCreateButton("Hide", 232, 56, 121, 25, 0)
$Button2 = GUICtrlCreateButton("Show", 232, 96, 121, 25, 0)
$Button3 = GUICtrlCreateButton("HideAll", 232, 272, 121, 25, 0)
$Button4 = GUICtrlCreateButton("ShowAll", 232, 312, 121, 25, 0)
$Label3 = GUICtrlCreateLabel("Sbot Liste", 32, 32, 51, 17)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Button5 = GUICtrlCreateButton("Exit", 296, 384, 113, 33, 0)
$Label1 = GUICtrlCreateLabel("made by Lunixx", 16, 384, 77, 17)
$Label2 = GUICtrlCreateLabel("V 1.1", 64, 400, 29, 17)
GUISetState(@SW_SHOW)
$sbot = ProcessExists ("SBot_1.09a")
$Tree = GUICtrlCreateTreeView(24, 56, 185, 273)
$refresh = GUICtrlCreateButton("Refresh List", 64, 344, 113, 17, 0)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button5
Exit
Case $refresh
$o = ObjGet('winmgmts:\\localhost\root\CIMV2')
$array = WinList ()
dim $pidtowindow[UBound ($array)-1][2]
for $i = 1 to UBound ($array) -1
$pidtowindow[$i-1][0] = WinGetProcess ( $array[$i][1] )
$pidtowindow[$i-1][1] = $array[$i][1]
Next
$array = ProcessList ("SBot_1.09a.exe")
;~ _ArrayDisplay ($array)
for $i = 1 to UBound ($array) -1
ConsoleWrite ($array[$i][0] & @lf)
$cur = GUICtrlCreateTreeViewItem ( $array[$i][0], $Tree)
;~ ProcessGetStats ($array[$i][1])
for $s = 0 to UBound ($pidtowindow) -1
if $pidtowindow[$s][0] == $array[$i][1] Then
$title = WinGetTitle ($pidtowindow[$s][1] )
if $title <> '' and BitAND (WinGetState ( $pidtowindow[$s][1], ''),2) then
ConsoleWrite ( "- " & $title & @lf )
GUICtrlCreateTreeViewItem ( $title, $cur)
EndIf
EndIf
Next
Next
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
case $Tree
ConsoleWrite ("tree" & @lf)
EndSwitch
WEnd
EndSwitch
WEnd
DAnke