So, ich habe es durchprobiert und mich schlau gemacht.
In der Liste sind u.a. auch Icons von der Taskbar und einige andere Dinge drin. Aber keine Buttons - Yay!
Ich stele hier noch den Code rein, wie ich mein Objekt auf ein "richtiges" Fenster überprüfe.
(Wer weis, ob das einmal jemand benötigt)
AutoIt: GetWindowInformation
Func GetWindowInformation() ;Get the information of the current window
Local $aList
Local $bFound
$hWnd = _WinAPI_WindowFromPoint($g_tStruct)
$aList = WinList()
While _WinAPI_GetParent($hWnd) <> 0
$bFound = False
For $i = 1 To $aList[0][0]
If $aList[$i][1] == $hWnd Then
$bFound = True
ExitLoop
EndIf
Next
If $bFound == False Then
$hWnd = _WinAPI_GetParent($hWnd)
Else
ExitLoop
EndIf
WEnd
EndFunc ;==>GetWindowInformation
Alles anzeigen