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?

g00py's profile on WallpaperFusion.com
I am looking for an automatic, or trigger based function that ensures windows snap down below the taskbar, so that it won't allow title bars to be accidentally created behind the taskbar. It's been incredibly frustrating to deal with this due to my monitor configuration, and I'm hoping someone has a solution to this.
Sep 13, 2016  • #1
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Is this happening with all applications, or only some? And does it happen with the Windows taskbar, or the DisplayFusion taskbar?

You could definitely workaround it with a Trigger/Scripted Function combo, but I'd also like to find out if it's a DisplayFusion bug :)
Sep 14, 2016  • #2
g00py's profile on WallpaperFusion.com
I've seen this happening on various windows. It's when taskbar isn't set to hidden. I want to ensure windows snap down below the bar, even when not maximized. I could record a gif if needed.
Sep 14, 2016  • #3
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Ok, no worries. I can create a Scripted Function that will do that. Is the taskbar on the top for all of your monitors? And do all taskbars have auto-hide disabled?
Sep 15, 2016 (modified Sep 15, 2016)  • #4
g00py's profile on WallpaperFusion.com
thank you! I use multiple monitors. I'd like to have it snap any window that appears under the taskbar automatically moved down when window is created or focused.
Sep 16, 2016  • #5
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Sorry, to clarify:
  • Are all of your taskbars positioned on the top-side of the monitors?
  • Do all taskbars have auto-hide disabled?
Sep 19, 2016  • #6
g00py's profile on WallpaperFusion.com
All taskbars are on the top monitor. All taskbars are NOT set to hide.
Sep 19, 2016  • #7
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Ok, could you try this out?
  • On the Settings > Functions tab, click Add Scripted
  • Delete the default code, and paste in the code from the attached text file
  • Give the Function a name and click OK, then Apply the settings
  • On the Triggers tab, add a new Trigger
  • Set the Trigger Event to "Window Created"
  • In the Actions pane, click Add > Run Function, and choose the Scripted Function
  • Click OK, then Apply the settings again and test it out
• Attachment: MoveWindowIfBehindTopTaskbar.txt [796 bytes]
Sep 20, 2016  • #8
g00py's profile on WallpaperFusion.com
Awesome. So I enabled wildcard on this as window is focused to run the script to ensure nothing every can be moved accidentally behind the taskbar.

Can I disable notification for this single script, and is there any optimization needed to ensure that running on any focused window won't cause problems when focused?

Really appreciate this!
Sep 20, 2016  • #9
g00py's profile on WallpaperFusion.com
Note that so far the functionality has worked perfectly, even with visual studio floating windows, on separate monitors with different orientations.
Sep 20, 2016  • #10
g00py's profile on WallpaperFusion.com
  • I set to do this on window create, so the script running is reduced. This is fine for now.
  • If I can figure out, or you have a suggestion... this might be greatly enhanced by providing functionality to ensure that any windows that have appeared offscreen, or are overlapping onto another monitor (say you resized and dragged between two monitors) would shift, so that nothing appears "offscreen". This would fix those annoying random bugs you can get with things like notepad where you have to use keyboard shortcuts to try and fix the offscreen appearance.
Sep 21, 2016  • #11
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Try this out :)
• Attachment: KeepWindowInWorkArea.txt [1,580 bytes]
Sep 22, 2016 (modified Sep 23, 2016)  • #12
g00py's profile on WallpaperFusion.com
Totally going to try this out. thank you!
Anyway I could suppress the constant notifications for a particular trigger?
I have any window create checking taskbar state, so ideally I'd only notified when it moves instead of always running
Sep 23, 2016  • #13
g00py's profile on WallpaperFusion.com
So far my testing is positive.
However, if the function runs on a window that is in the current workspace, it is still shifting the window a bit to center. I am not sure why yet, but I'll post if I figure that out.
Sep 23, 2016  • #14
Keith Lammers (BFS)'s profile on WallpaperFusion.com
There unfortunately isn't a way to disable the notification for just one function, but you can disable them globally in the Settings > Advanced Settings window.

As for the window still moving, it looks like I made a mistake in that script. If you remove the semicolon at the end of line 24 (the if statement for the bottom edge check) that should fix it up. I'll update the script attached to my previous post as well.

Thanks!
Sep 23, 2016  • #15
g00py's profile on WallpaperFusion.com
Still shifting windows a bit, even if inside the bounds of the monitor workarea.
Not sure if issue with the varying monitor height on the other monitors. It seems to get the current monitor workarea at the top. Any suggestion so I can debug?
Sep 23, 2016  • #16
Keith Lammers (BFS)'s profile on WallpaperFusion.com
How close are the windows to the screen edge before the trigger runs? Would any of the window edges be within 8px from a screen edge?
Sep 26, 2016  • #17
g00py's profile on WallpaperFusion.com
No. I think I know what you are getting at, the invisible border stuff with windows 10 aero? No, it could be right in the middle of the screen and still let me trigger it.
Sep 26, 2016  • #18
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Ok, can you send me a copy of your troubleshooting info? I'll test the script here with the exact monitor setup that you have and see if I can figure out what's going on there :)
Sep 27, 2016  • #19
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(-)  Login to Vote(-)