qwert Posted January 17, 2008 Share Posted January 17, 2008 (edited) 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> _TaskbarHideButton("Program") 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 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 January 19, 2008 by qwert Link to comment Share on other sites More sharing options...
qwert Posted January 19, 2008 Author Share Posted January 19, 2008 Still don't have a handle on this ... any ideas? ... anyone?? Link to comment Share on other sites More sharing options...
qwert Posted January 22, 2008 Author Share Posted January 22, 2008 Last try .... anyone? Link to comment Share on other sites More sharing options...
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