pyjab icon indicating copy to clipboard operation
pyjab copied to clipboard

Logical coordinates returned by JAB API are different from physical coordinates when DPI changes

Open discovery-131794 opened this issue 2 years ago • 1 comments

Hi @gaozhao1989 , Sometimes when display DPI changes, the logical coordinates returned by JAB API are different from physical coordinates. And the reason is that the java application is not "PROCESS_PER_MONITOR_DPI_AWARE". When using simulate click, we need physical coordinates to locate the element, So I think we need to convert logical coordinates to physical coordinates by calling win32 function "LogicalToPhysicalPointForPerMonitorDPI".

discovery-131794 avatar Aug 13 '22 21:08 discovery-131794