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.
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.
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
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.
All taskbars are on the top monitor. All taskbars are NOT set to hide.
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!
Note that so far the functionality has worked perfectly, even with visual studio floating windows, on separate monitors with different orientations.
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
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.
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!
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?
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?
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.