Skip to content

Instantly share code, notes, and snippets.

@SubOptimal
Created October 19, 2015 07:55
Show Gist options
  • Save SubOptimal/c69d632c0f63444b0ac8 to your computer and use it in GitHub Desktop.
Save SubOptimal/c69d632c0f63444b0ac8 to your computer and use it in GitHub Desktop.
fix locked taskbar autohide in Windows
# sometimes the autohide of the Windows taskbar doesn't work anymore
# and the taskbar is showed permanently
#
# beside killing and restarting the explorer.exe process it's enough
# forcing to display a new tooltip
[reflection.assembly]::loadwithpartialname("System.Windows.Forms")
[reflection.assembly]::loadwithpartialname("System.Drawing")
$notify = new-object system.windows.forms.notifyicon
$notify.icon = [System.Drawing.SystemIcons]::Information
$notify.icon = [System.Drawing.SystemIcons]::Error
$notify.visible = $true
$notify.showballoontip(10,"fix balloontip hiccup ","auto hide should work again",[system.windows.forms.tooltipicon]::None)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment