Title

Message

Confirm

Centre Window Over Mouse Cursor

< Return to DisplayFusion Scripted Functions (Macros)

Centre Window Over Mouse Cursor

Description
This function will centre the mouse over the mouse cursor, only if the mouse cursor is on a different monitor than the window's current location. Note that the window moves to the target monitor first, before moving again to its final location. I had to use this hack to make it work correctly when moving to monitors of different scaling levels. If all of your monitors are the same scaling level, you can comment out line 22.
Language
C#
Minimum Version 9.4.3+
Created By Keith Lammers (BFS)
Contributors -
Date Created
Jan 24, 2019
Date Last Modified
Jan 24, 2019

Scripted Function (Macro) Code

Scripted Function (Macro) Help

Scripted Function (Macro) Help

Want to create your own Scripted Function (Macro) or modify an existing one?
Visit our Scripted Function (Macro) Help page for more information on the available functions.