fix: change mouse click method to use LeftButtonDown for improved accuracy #2618

This commit is contained in:
辉鸭蛋
2026-01-14 03:20:52 +08:00
parent 1c05245b83
commit 3167bf6590

View File

@@ -40,7 +40,7 @@ public class DesktopRegion : Region
throw new System.NullReferenceException();
}
mouse.MoveMouseTo((x + (w * 1d / 2)) * 65535 / Width,
(y + (h * 1d / 2)) * 65535 / Height).LeftButtonClick().Sleep(50).LeftButtonUp();
(y + (h * 1d / 2)) * 65535 / Height).LeftButtonDown().Sleep(50).LeftButtonUp();
}
public void DesktopRegionMove(int x, int y, int w, int h)