AirtestProject / AirtestProject/Airtest
windows下当使用多显示屏且主屏不在最左侧时会出现鼠标坐标偏移的问题。
未关闭
- 主要语言
- Python
- 星标
- 9.6k
- 派生
- 1.5k
- PR 合并指标
- 30 天内没有已合并 PR
描述
**描述问题bug**
windows下当使用多显示屏且主屏不在最左侧时会出现鼠标坐标偏移的问题。
我的屏幕排列为

这时 `(devices.screen.monitor['left'],devices.screen.monitor['top'])` 实际上是负数,但是`win32api.GetCursorPos()`使用的坐标是相对所有屏幕左上角为0,这里发生了偏移。
**复现步骤**
1. 将主屏置于多屏显示器中的非最左侧位置
2. devices=connect_device("Windows:///?title_re=[title]")
3. touch((0,0))
4. 此时实际touch的位置距离预期差距(devices.screen.monitor['left'],devices.screen.monitor['top'])
**python 版本:** `python3.13`
**airtest 版本:** `1.3.5`
**设备:**
- 型号: PC
- 系统: windows 11
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。