WinGetPos 返回负坐标

WinGetPos returning negative coordinates

我正在尝试获取 windows 的位置和大小。但是,我看到在任何全屏 windows 上 X 和 Y 都得到 -9。

WinGetTitle, WT, A
WinGet, WID, ID, A
WinGetPos, X, Y, Width, Height, %WT%
ListVars
WinWaitActive ahk_class AutoHotkey
ControlSetText Edit1, [Title]`r`n%WT%`r`n[ID]`r`n%WID%`r`n[Dimensions]`r`nX: %X%`r`nY: %Y%`r`nWidth: %Width%`r`nHeight: %Height%
WinWaitClose

以上代码的输出为:

[Title]
Stuff.ahk - SciTE4AutoHotkey
[ID]
0x4e079a
[Dimensions]
X: -9
Y: -9
Width: 1938
Height: 1048

是我的决心造成的吗?当我使用 window 间谍时,我可以清楚地看到 window 的左上角位于 0,0 absolute 或 9,9 by window.

知道为什么会这样吗?

客户区距离 window 区域 -9 x y,到达屏幕的 0x0。就是这样。