Jump to content
Sign in to follow this  

How to clean the tray

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?

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.