JetlagJad Posted June 22, 2009 Posted June 22, 2009 #Include <GuiToolBar.au3> 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 It does nothing when it is called upon by _TaskbarHideButton('WindowName')... I had it working, but lost all my Includes when I reformatted Thanks in advance.
jerem488 Posted June 22, 2009 Posted June 22, 2009 (edited) Do you know you have ControlHide() function for this. ; hide start button ControlHide("[CLASS:Shell_TrayWnd]", "", "button1") Edited June 22, 2009 by jerem488 Qui ose gagneWho Dares Win[left]CyberExploit[/left]
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