Processing Ajax...

Title
Close Dialog

Message

Confirm
Close Dialog

Confirm
Close Dialog

Confirm
Close Dialog

User Image
playfu
4 discussion posts
Hey there,

Bought a Pro version recently... I've been blown away by the quality of your software. You've put an unusual amount of thought into the interface and into features that power users might want... It's a delight. Kudos for making that jewel.

I have a question about a feature involving Alt-Tab and the mouse... Most likely it's already possible and I haven't yet discovered it.

- I love having a shortcut to move the mouse to the other monitor
- I've always loved Alt-tab
- What I really need is a shortcut that combines both. For instance, suppose you have an editor taking up the whole left screen, and a browser taking up the right screen. If you Alt-tab, you toggle the focus between the applications, but the mouse cursor stays on the same monitor. Likewise, if you move the mouse to the other monitor via a "Move Mouse Cursor to Next Monitor" shortcut, the focus is unaffected.

I would like a "Super Alt-Tab" that changes the focus and takes the mouse along with it.
Does that already exist somewhere? I couldn't find that feature in the standard Functions or Scripts.

Many thanks for the wonderful software

EDIT:
As a first pass, this combination would do the trick, if someone could please help me roll them into one scripted function:
- Move Mouse Cursor to Next Monitor (existing standard function)
- Bring the Window Under the Mouse Cursor to the Front (existing scripted function)

Looked in the list of BFS methods but couldn't find how to invoke the first one. Please help. :)

Longer term, I'd love one that cycles through the Windows and brings the mouse with it as described above.
Jun 22, 2015 (modified Jun 22, 2015)  • #1
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Thanks for the kind words, glad to hear you like DisplayFusion!

You would just create a script that runs these lines:

BFS.DisplayFusion.RunFunction("Move Mouse Cursor to Next Monitor");
BFS.DisplayFusion.RunFunction("Bring the Window Under the Mouse Cursor to the Front");

You may need to put a delay in between the two functions, which you can do like this:

BFS.General.ThreadWait(250);

At some point we're planning to add function triggers as well, which would let you do stuff when other things happen (i.e. a window gains focus), so I'll be sure to let you know when we've added those.
Jun 23, 2015 (modified Jun 23, 2015)  • #2
User Image
playfu
4 discussion posts
Hi Keith,

Thank you, that's terrific. Really useful. That's a great start on "Super Alt-Tab".
In case someone else wants to do the same and hasn't seen the "sample function that run other function" scripts, here is the whole thing:

Code

// This moves the focus and mouse to the other monitor
using System;
using System.Drawing;
public static class DisplayFusionFunction
{
public static void Run(IntPtr windowHandle)
   {
   BFS.DisplayFusion.RunFunction("Move Mouse Cursor to Next Monitor");
   // If needed, introduce delay
   // BFS.General.ThreadWait(250);
   BFS.DisplayFusion.RunFunction("Bring the Window Under the Mouse Cursor to the Front");
   }
}


So this does it for the two front-most applications (assuming they're both in full-screen).
Can you think of a way to do this in Alt-Tab fashion: cycling through the applications, and whichever one we land on also gets the mouse?
With traditional Alt-Tab, you get the focus but not the mouse cursor.
Jun 23, 2015 (modified Jun 23, 2015)  • #3
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Not really, unfortunately. Alt+Tab does a lot of tricky stuff that wouldn't be possible to replicate in a script. But when we add function triggers, we should be able to make a script that will give you the full functionality you're looking for :)
Jun 24, 2015  • #4
User Image
playfu
4 discussion posts
Quote:
But when we add function triggers, we should be able to make a script that will give you the full functionality you're looking for


Wow, that's great to hear!
Thanks a lot.
Jun 24, 2015  • #5
Keith Lammers (BFS)'s profile on WallpaperFusion.com
The latest DisplayFusion Beta now has a Triggers function, and one of the trigger events is Window Focus, so you should be able to use it to do what you're looking for now. More details on the Triggers here: http://www.displayfusion.com/KB/WorkingWithTriggers/

Thanks!
Dec 18, 2015  • #6
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(-)  Login to Vote(-)