Jump to content
Sign in to follow this  

Any idea why this isn't working?

Recommended Posts


#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)
    Return False

It does nothing when it is called upon by _TaskbarHideButton('WindowName')... I had it working, but lost all my Includes when I reformatted :D

Thanks in advance.

Share this post

Link to post
Share on other sites

Do you know you have ControlHide() function for this.

; hide start button
ControlHide("[CLASS:Shell_TrayWnd]", "", "button1")
Edited by jerem488

Qui ose gagneWho Dares Win[left]CyberExploit[/left]

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.