Jump to content

SysTray TaskBar Cleanup


BigDaddyO
 Share

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)
    Next
    MouseMove($CurrentPos[0], $CurrentPos[1], 1)
EndIf

Mike

Link to comment
Share on other sites

I remember Valik posted the following (which made it easier to find): http://www.autoitscript.com/forum/index.ph...ic=7404&hl=tray

edit: clickable link

Edited by CyberSlug
Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...