Sign in to follow this  
Followers 0
boltc

hide taskbar external program

5 posts in this topic

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..)

.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

#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"

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

#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

Share this post


Link to post
Share on other sites

#4 ·  Posted (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 by Siao

"be smart, drink your wine"

Share this post


Link to post
Share on other sites

_TaskbarHideButton

It 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.

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  
Followers 0