Nein, es wird nur kein Array zurückgegeben wenn der Fokus nicht auf dem Fenster liegt.
Schnelles Beispiel:
Spoiler anzeigen
[autoit]
Global $sTitel = "SetOnTopGUI"
Global $iWidth = @DesktopWidth
Global $iHeight = 100
GUICreate($sTitel, $iWidth, $iHeight, 0, 0)
GUISetState(@SW_HIDE)
While 1
$aMouse = MouseGetPos()
$aWin = WinGetPos($sTitel, "")
If $aMouse[0] > $aWin[0] And $aMouse[0] < $aWin[0] + $aWin[2] And $aMouse[1] > $aWin[1] And $aMouse[1] < $aWin[3] Then
GUISetState(@SW_SHOW)
Else
GUISetState (@SW_HIDE)
EndIf
WEnd