Gibt es eigentlich eine Funktion mit der man die Koordinaten eines Fensters relativ zu dessen "Arbeitsfläche" auslesen kann? Wenn nicht, klappt es mit dieser hier sehr gut ;).
Spoiler anzeigen
[autoit]
Func _WinGetClientPos($hWnd) ; - Author: name22 (http://www.autoit.de)
Local $aReturn[2]
Local $iOptMouseCoord = Opt("MouseCoordMode", 1)
Local $aMousePosAbs = MouseGetPos()
Local $aMousePosRel = GUIGetCursorInfo($hWnd)
Opt("MouseCoordMode", $iOptMouseCoord)
$aReturn[0] = $aMousePosAbs[0] - $aMousePosRel[0]
$aReturn[1] = $aMousePosAbs[1] - $aMousePosRel[1]
Return $aReturn
EndFunc