rasim Posted March 18, 2008 Share Posted March 18, 2008 Hi! Very often i see messages e.g. "I kill program from task manager, but icon of this program still showed in system tray. How can clear taskbar from icons of killed app.`s?" And i have written this script: #include <WinAPI.au3> $hTaskBar = _WinAPI_FindWindow("Shell_TrayWnd", "") $hParent = ControlGetHandle($hTaskBar, "", "TrayNotifyWnd1") $hWnd = ControlGetHandle($hParent, "", "ToolbarWindow321") $WinRect = _WinAPI_GetWindowRect($hWnd) $aMousePos = MouseGetPos() $Left = DllStructGetData($WinRect, "Left") $Right = DllStructGetData($WinRect, "Right") $Top = DllStructGetData($WinRect, "Top") For $i = $Left To $Right MouseMove($i, $Top, 0) Next MouseMove($aMousePos[0], $aMousePos[1], 0) Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted March 18, 2008 Moderators Share Posted March 18, 2008 Valik did something similar here: http://www.autoitscript.com/forum/index.ph...ic=7404&hl= a while ago. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
rasim Posted March 18, 2008 Author Share Posted March 18, 2008 Valik did something similar here: http://www.autoitscript.com/forum/index.ph...ic=7404&hl= a while ago.LOL. I don`t know about Valik`s solution Thanks. Link to comment Share on other sites More sharing options...
rasim Posted March 18, 2008 Author Share Posted March 18, 2008 I haven't tried the script yet, but does it move the cursor towards the 'dead' icon, to clear the icon?Yes Link to comment Share on other sites More sharing options...
Keymaker Posted May 21, 2008 Share Posted May 21, 2008 @rasim, This little script did the trick for me and reliably removed my left over icons. Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now