Jump to content

hide taskbar external program


boltc
 Share

Recommended Posts

#427433

But 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 by Siao

"be smart, drink your wine"

Link to comment
Share on other sites

#427433

But 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 by boltc
Link to comment
Share on other sites

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 by Siao

"be smart, drink your wine"

Link to comment
Share on other sites

  • 4 weeks later...

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...