Processing Ajax...

Title

Message

Confirm

Confirm

Confirm

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure?

User Image
badbob001
67 discussion posts
I currently have hotkeys to move the active windows to the prev/next monitor. But how can I also move the mouse to the prev/next monitor at the same time?

I actually have the hotkeys mapped to four-finger left/right swipe. I also have set the os automatically set the window under the cursor to be active. But these two settings are kind of incompatible with each other since after swiping a window left/right and I want to continue moving the window with the same gesture, it now doesn't affect the same window since my mouse cursor is no longer over the moved window. So perhaps I just need to automatically move the cursor along with the window.
Mar 28, 2024  • #1
Owen Muhlethaler (BFS)'s profile on WallpaperFusion.com
You can create a scripted function that runs the functions back to back, and then add a hotkey to it. It would look like this:

Code

using System;
using System.Drawing;

// The 'windowHandle' parameter will contain the window handle for the:
//   - Active window when run by hotkey
//   - Trigger target when run by a Trigger rule
//   - TitleBar Button owner when run by a TitleBar Button
//   - Jump List owner when run from a Taskbar Jump List
//   - Currently focused window if none of these match
public static class DisplayFusionFunction
{
    public static void Run(IntPtr windowHandle)
    {
        BFS.DisplayFusion.RunFunction("Move Window to Next Monitor");
        BFS.DisplayFusion.RunFunction("Move Mouse Cursor to Next Monitor");
        
    }
}
Apr 1, 2024  • #2
User Image
badbob001
67 discussion posts
Quote:
You can create a scripted function that runs the functions back to back, and then add a hotkey to it.

This is perfect! Thanks!
Apr 1, 2024  • #3
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(-)  Login to Vote(-)