eEniquEe Posted August 6, 2010 Share Posted August 6, 2010 (edited) Hi, I really have some pretty small problems with my Task Bar. I would be very glad if someone could help me out. The problem is that when I'm coding I often listen to music, surf the webs, as well as open many text files, and this makes my Task Bar look really awful, with tons of programmes attaching to it. What I want to ask you guys is, how to hide a programme from the Task Bar? What I mean is, say, I have a normal visible form, but when working with this form, I have to open some more child-forms. And I really don't want these child-forms to show themselves in the Task Bar, because it'll make the Task Bar look even more messier. Can I do this? I have tried to play around with Koda, by checking, and unchecking some of the Form's attributes, but with no luck. I really hope that you guys could help me with this. This is not a serious problem, but, well, it should be better if I can hide some unneeded forms from the Task Bar, right? Thanks a lot in advance, And have a nice day, :P Edited August 6, 2010 by eEniquEe Link to comment Share on other sites More sharing options...
JohnOne Posted August 6, 2010 Share Posted August 6, 2010 (edited) #NoTrayIcon or @SW_HIDE Edited August 6, 2010 by JohnOne AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted August 6, 2010 Moderators Share Posted August 6, 2010 eEniquEe,You can remove the button from the taskbar by using the "parent" parameter when you create your GUI. If you do not have a parent, then you can use the ever-present, but hidden, AutoIt window: #include <GUIConstantsEx.au3> ; Create parent $hGUI = GUICreate("Parent", 500, 500) GUISetState() ; Use parent handle when creating child $hGUI_No_TaskBar_1 = GUICreate("Child", 200, 200, 100, 100, Default, Default, $hGUI) GUISetState() ; Or use the Autoit window $hGUI_No_TaskBar_2 = GUICreate("AutoIt Child", 200, 200, 200, 200, Default, Default, WinGetHandle(AutoItWinGetTitle())) GUISetState() While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit EndSwitch WEndI hope that helps. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
eEniquEe Posted August 6, 2010 Author Share Posted August 6, 2010 #NoTrayIcon or @SW_HIDE eEniquEe, You can remove the button from the taskbar by using the "parent" parameter when you create your GUI. If you do not have a parent, then you can use the ever-present, but hidden, AutoIt window: #include <GUIConstantsEx.au3> ; Create parent $hGUI = GUICreate("Parent", 500, 500) GUISetState() ; Use parent handle when creating child $hGUI_No_TaskBar_1 = GUICreate("Child", 200, 200, 100, 100, Default, Default, $hGUI) GUISetState() ; Or use the Autoit window $hGUI_No_TaskBar_2 = GUICreate("AutoIt Child", 200, 200, 200, 200, Default, Default, WinGetHandle(AutoItWinGetTitle())) GUISetState() While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd I hope that helps. M23 Thanks JohnOne, and Melba very much for taking time to reply to my question. @JohnOne: Well, your way is not what I intend to do. I mean to hide the whole thing from the Task Bar, not just the Icon. Anh @SW_HIDE will hide my whole form. But, btw, thanks for replying @Melba: Thanks for your great explanation, and the easy-to-understand sample code. It works like a charm. I get it now. Thanks very much indeed. 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