I currently have an application which needs to have an awareness of which monitor the cursor is located when running in a multi-monitor configuration.
How to determine active monitor of the current cursor location
Asked Answered
Don't forget Screen.MonitorFromPoint and Mouse.CursorPos - these WinAPI functions are encapsulated in the VCL.
Als remember that Mouse.CursorPos throws exceptions if there is no mouse pos. For example when the user session is disconnected (XP fast user switching or terminal server). –
Torrential
© 2022 - 2024 — McMap. All rights reserved.