boltc Posted January 7, 2008 Share Posted January 7, 2008 hello, i want to hide the button on the taskbar from an external program, is that possible and how? i cant find anything in the helpfile about it.. (because in loading the program in my own gui..) . Link to comment Share on other sites More sharing options...
Siao Posted January 7, 2008 Share Posted January 7, 2008 (edited) #427433But if, as you say, you're "loading the program in my own gui", by making that window a child of your gui I assume, its taskbar button should be gone anyway. Edited January 7, 2008 by Siao "be smart, drink your wine" Link to comment Share on other sites More sharing options...
boltc Posted January 7, 2008 Author Share Posted January 7, 2008 (edited) #427433But if, as you say, you're "loading the program in my own gui", by making that window a child of your gui I assume, its taskbar button should be gone anyway.the taskbar is not going away.. do you know where to find the Toolbar_FindToolbar function? (A3LToolBar.au3) cant find it anymore.. prob removed?. Edited January 7, 2008 by boltc Link to comment Share on other sites More sharing options...
Siao Posted January 7, 2008 Share Posted January 7, 2008 (edited) If you're using latest stable AutoIt release, you don't need Auto3Lib anymore for that: #Include <GuiToolBar.au3> _TaskbarHideButton("Windows Live Messenger") Func _TaskbarHideButton($sText, $bHide = True) $hToolbar = _GUICtrlToolbar_FindToolbar("[CLASS:Shell_TrayWnd]", $sText) If $hToolbar = 0 Then Return False For $i = 0 To _GUICtrlToolbar_ButtonCount($hToolbar)-1 $cId = _GUICtrlToolbar_IndexToCommand($hToolbar, $i) If _GUICtrlToolbar_GetButtonText($hToolbar, $cId) = $sText Then Return _GUICtrlToolbar_HideButton($hToolbar, $cId, $bHide) EndIf Next Return False EndFunc Back then A3Lib's Toolbar UDF hadn't been converted yet. Edited January 7, 2008 by Siao "be smart, drink your wine" Link to comment Share on other sites More sharing options...
masvil Posted February 2, 2008 Share Posted February 2, 2008 _TaskbarHideButtonIt hides button after it appears: I need it doesn't appear at all when my script launches a specified program, even if its window come out visible. 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