Processing Ajax...

Title
Close Dialog

Message

Confirm
Close Dialog

Confirm
Close Dialog

Confirm
Close Dialog

User Image
badbob001
64 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.
26 days ago  • #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");
        
    }
}
22 days ago  • #2
User Image
badbob001
64 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!
21 days ago  • #3
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(-)  Login to Vote(-)