My system version is Windows 11 21H2 22000.469 and the AHK version is v2.0 beta.3.
When using the ToolTip function, we expect a piece of text to appear on the screen. If the area of the text goes beyond the edge of the screen, we expect it to be automatically corrected so that the text is just inside the screen. I have found that this position correction is correct horizontally and incorrect vertically. If the text goes beyond the lower edge of the screen, it will appear at the top of the screen.
As an example, run the code:
- 1.png (413.03 KiB) Viewed 3685 times
When x=1400, y=900, as shown in the 1.png, the text is inside the screen, which is OK.
- 2.png (423.61 KiB) Viewed 3685 times
When x=2000, y=900, as shown in the 2.png, the text is beyond the right edge of the screen and is corrected to be close to the right edge, which is OK.
- 3.png (455.12 KiB) Viewed 3685 times
When x=1400, y=950, as shown in the 3.png, the text is beyond the bottom edge of the screen and is corrected to be close to the top edge, which is a bug.