Jump to content
Sign in to follow this  

Need a bit of help with taskbar entry

Recommended Posts

I use a script to start a third-party application -- and then have the script size and position the window as soon as it's running. All that works fine and the window displays properly. The problem is that the name of the program doesn't show up on the taskbar until I click somewhere in the window. I would like it to take its place along with the other active programs as soon as it's running. I searched and found the following code, but it only shows or hides the startup icon I have on the taskbar, not the "button" entry on the taskbar.

#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

Is there a different function to work with the buttons? Or can this be modified?

Thanks for any help.

Update: still don't have a handle on this ... any ideas?

Edited by qwert

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...