DCCD Posted October 28, 2008 Share Posted October 28, 2008 (edited) My Script Ready to compile And I don't Wanna the Taskbar to show it, i know you can do it like thisBut is there another way, the easyway like #NoTrayIcon#Include <GuiToolBar.au3> WinWaitActive("Untitled - Notepad") _TaskbarHideButton("Untitled - Notepad") 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 Edited October 28, 2008 by DCCD [u][font=Arial Black]M[/font]y Blog, AVSS Parts[/u][font=Arial Black]Else[/font][font=Arial Black]L[/font]ibya Linux Users Group Link to comment Share on other sites More sharing options...
rasim Posted October 28, 2008 Share Posted October 28, 2008 DCCDHide a taskbar item Link to comment Share on other sites More sharing options...
DCCD Posted October 28, 2008 Author Share Posted October 28, 2008 Note: The above script it's real and it work fine, all i need Short code like "#NoTrayIcon" [u][font=Arial Black]M[/font]y Blog, AVSS Parts[/u][font=Arial Black]Else[/font][font=Arial Black]L[/font]ibya Linux Users Group Link to comment Share on other sites More sharing options...
DCCD Posted October 31, 2008 Author Share Posted October 31, 2008 The only problem, The button appears for a second , All I Wanna Do Hide AutoIt v3 Script Button, Not for Notepad or any other exe any idea? #Include <GuiToolBar.au3> WinWaitActive("Untitled - Notepad") _TaskbarHideButton("Untitled - Notepad") 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 [u][font=Arial Black]M[/font]y Blog, AVSS Parts[/u][font=Arial Black]Else[/font][font=Arial Black]L[/font]ibya Linux Users Group Link to comment Share on other sites More sharing options...
rasim Posted October 31, 2008 Share Posted October 31, 2008 DCCDThis?#NoTrayIcon #include <GuiConstantsEx.au3> $dummy = GUICreate("dummy") $hGUI = GUICreate("Test GUI", 300, 200, -1, -1, -1, -1, $dummy) GUISetState() Do Until GUIGetMsg() = $GUI_EVENT_CLOSE Link to comment Share on other sites More sharing options...
DCCD Posted October 31, 2008 Author Share Posted October 31, 2008 Thanks alot,, This is exactly what I'm talking about #NoTrayIcon #include <GuiConstantsEx.au3> $dummy = GUICreate("dummy") $hGUI = GUICreate("Test GUI", 300, 200, -1, -1, -1, -1, $dummy) GUISetState() Do Until GUIGetMsg() = $GUI_EVENT_CLOSE [u][font=Arial Black]M[/font]y Blog, AVSS Parts[/u][font=Arial Black]Else[/font][font=Arial Black]L[/font]ibya Linux Users Group Link to comment Share on other sites More sharing options...
FreeFry Posted October 31, 2008 Share Posted October 31, 2008 (edited) DCCD This? #NoTrayIcon #include <GuiConstantsEx.au3> $dummy = GUICreate("dummy") $hGUI = GUICreate("Test GUI", 300, 200, -1, -1, -1, -1, $dummy) GUISetState() Do Until GUIGetMsg() = $GUI_EVENT_CLOSEOr, why not like this? #NoTrayIcon $hGUI = GUICreate("Test GUI", 300, 200, -1, -1, -1, -1, WinGetHandle("[CLASS:Progman]")) GUISetState() Do Until GUIGetMsg() = -3 Edited October 31, 2008 by FreeFry 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