Jump to content

How to clean the tray


tlokz
 Share

Recommended Posts

Ok is there any way that can successfully clean all orphaned icons from a tray? I used a func I coded a while ago for a while but its not very effective and requires an extra include just for that func. It doesn't clean the hidden ones also :)

Inital Func:

Func _CleanTray()
    Local $desktophandle = _WinAPI_GetDesktopWindow()
    Local $desktopheight = _WinAPI_GetClientHeight($desktophandle)
    Local $desktopwidth = _WinAPI_GetClientWidth($desktophandle)
    Local $firstcoordx = (800 / 1024) * $desktopwidth
    Local $bothcoordy = (755 / 768) * $desktopheight
    Local $secondcoordx = (1000 / 1024) * $desktopwidth

    MouseMove($firstcoordx, $bothcoordy, 0)
    MouseMove($secondcoordx, $bothcoordy, 10)
    MouseMove($firstcoordx, $bothcoordy, 10)
EndFunc   ;==>_CleanTray

Any better way to do this?

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...