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
Korvar
2 discussion posts
Hello,

When switching monitor profiles, my primary Windows taskbar often (but not always) becomes transparent like this:

https://i.imgur.com/er9aNBt.jpg


I searched the discussions and only found one other discussion which didn't have a conclusive resolution.

The good news is I have found two workarounds - I just need help automating one of them.

The first workaround is restarting explorer.exe. It works but introduces its own issues as some of my task tray icons disappear until I reboot.

The better workaround I've found is to toggle the "Automatically hide the taskbar in desktop mode" option in the "Taskbar" option menu under the "Settings" menu in Windows:

https://i.imgur.com/vPVeEgA.png


It would be PERFECT if I could script an automatic toggling (on/off) of that setting every time I switch monitor profiles. Is it possible to make that happen? I've looked for its registry entry but haven't had any luck so far.

Thanks in advance for your help!

Korvar

Edit: the images I posted are no longer showing, I attached them and they should also be viewable here.
May 25, 2019 (modified May 25, 2019)  • #1
Keith Lammers (BFS)'s profile on WallpaperFusion.com
There's a DisplayFusion scripting function that can change the Windows taskbar autohide setting. You could create a script like this:

Code

BFS.Taskbar.SetWindowsTaskbarAutoHide(true);
BFS.General.ThreadWait(2000);
BFS.Taskbar.SetWindowsTaskbarAutoHide(false);


And then have it run from a Trigger rule that uses the "Monitor Profile Changed" event.

Hope that helps!
May 27, 2019  • #2
User Image
Korvar
2 discussion posts
Thank you, Keith.

The code you provided works, but it also leaves autohide in a disabled state on the main taskbar. I'm currently experimenting with different variations of the code (including switching around the order, adding another autohide toggle at the end, etc.); none have worked so far, but I'll keep at it. For some reason the scripted way of toggling the setting is slightly different from the manual toggling of the switch. You have, however, led me in the right direction, and I feel closer to the solution than I did before.

In the meantime I do have a workaround that is minimally inconvenient. I pinned the appropriate Windows settings menu to my Start menu, and it's pretty easy to get in there and toggle the switch manually when needed.

Thanks again, and I appreciate your support!

Another happy customer,
Korvar
Jun 2, 2019  • #3
Keith Lammers (BFS)'s profile on WallpaperFusion.com
No worries, please let us know if we can help with anything else!
Jun 5, 2019  • #4
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(1)  Login to Vote(-)