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
NetMage
287 discussion posts
The Move Window to Mouse Cursor Monitor doesn't always do the best thing when the cursor is near the middle of two monitors.

I have a program I use fairly often and when I open a dialog from a menu near the left hand size of my right monitor, it puts the menu and the dialog on the left monitor near the cursor on the right monitor, i.e. on the right hand side of my left monitor. DF then promptly moves the dialog to the right hand side of my right monitor (which has the mouse cursor) as far away as possible from the mouse cursor. This is never what I want to happen.

Perhaps there can be some options to either not move the dialog further away from the mouse cursor when moving it to the new monitor, or moving it both to the new monitor and near the mouse cursor.

I may try to write a trigger, but DF with triggers has been unstable (again) for me.
Mar 3, 2016  • #1
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Would a Function that moves the window to the mouse cursor be helpful? I can create a Scripted Function that does that :)
Mar 3, 2016  • #2
User Image
NetMage
287 discussion posts
I wrote a scripted function to handle that, but only across monitors (it doesn't move on the same monitor, though that might be nice too).

It is trickier than you may think :)
Mar 4, 2016  • #3
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Yeah, for sure! I whipped up a quick sample script to move the window to the mouse cursor, regardless of what monitor it's on, but it doesn't do anything fancy like re-sizing the window if the window would be outside of the monitor bounds.
Mar 10, 2016  • #4
User Image
NetMage
287 discussion posts
Mine moves the window to the mouse cursor when it is not maximized (just moves monitor for maximized), and the new window is not under the mouse cursor originally, after moving the window to the same monitor as the mouse cursor. Then it moves the window with-in the screen work area. My next enhancement will be to move the window and keep it with-in the screen work area.

I am disappointed in how slow the event is to trigger - I can have a new window open (e.g. Network Status) and move away from the open window fast enough that the event moves the window after it has been sitting.
Mar 12, 2016  • #5
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Nice, sounds like an excellent script!

There is a slight delay before the trigger fires, due to needing to wait for the window to be fully visible before trying to move it. There's not much we can do about that one. However, I have noticed that Scripted Functions take slightly longer to start than Custom Functions for some reason. I've put that on our list to investigate further :)

Thanks!
Mar 15, 2016  • #6
Keith Lammers (BFS)'s profile on WallpaperFusion.com
We've just released a new DisplayFusion beta version (http://www.displayfusion.com/Download/Beta/) and the scripted functions should now fire much quicker. Please let us know if you run into any trouble after updating.

Thanks!
May 5, 2016  • #7
User Image
NetMage
287 discussion posts
I have my triggers turned off due to the GDI leaks with triggers - has this also been fixed?
May 9, 2016  • #8
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Not yet, sorry! I will post an update when that is fixed as well :)
May 11, 2016  • #9
User Image
NetMage
287 discussion posts
It looks like this is fixed in 8.0 beta 7. I see the GDI Handles changing between 80 - 120 and going up and down.
Jun 15, 2016  • #10
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Excellent!
Jun 15, 2016  • #11
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(-)  Login to Vote(-)