Jump to content
Sign in to follow this  

SysTray TaskBar Cleanup

Recommended Posts


Something like this has probably been posted before but I can't find it, So I wrote my own.

Basically all it does is moves your mouse over all the items in the system tray then moves your mouse back to where it was.

I have tested it and it does work even if your TaskBar is set to AutoHide

$CurrentPos = MouseGetPos()
Opt("WinTitleMatchMode", 4)
$Tray = WinGetClientSize("classname=Shell_TrayWnd", "")
if not @error then
    $TopofSysTray = @DesktopHeight - $Tray[1]
    for $i = 5 to @DesktopHeight - $TopofSysTray Step 5
        MouseMove($Tray[0], $TopofSysTray + $i, 1)
        MouseMove(0, $TopofSysTray + $i, 1)
    MouseMove($CurrentPos[0], $CurrentPos[1], 1)


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.