MarcElser Posted May 15, 2021 Share Posted May 15, 2021 Hi, I found a lot of topics describing how to Hide the Taskbar Entry of AutoIt by making it a child window of another parent window. Indeed I made it a child window of the ever present AutoIT window and that works fine. I also have functionality to minimize to tray (because it needs to keep running) and restore the GUI from tray menu. Works also perfectly. But even if the GUI is visible it of course has no Taskbar entry anymore and you cannot bring it to front. It doesn't even behave well if you do "Alt-Tab" which such a GUI. Is it somehow possible to actually create a taskbar entry when GUI is shown (and also attach the GUI to it so you can click on it to bring it to front or use Alt-Tab) and hide the Taskbar entry when it minimizes to tray? I didn't find any solution in the forums for this problem and I don't know if it's even possible. I know other programs do magic like that it's just a question if it can be accomplished by Autoit as well. Would be grateful for any ideas on this Link to comment Share on other sites More sharing options...
Zedna Posted May 16, 2021 Share Posted May 16, 2021 (edited) Here is exactly what you need: EDIT: and here is modification when you need it minimized to tray immediatelly after start GuiCreate("MyGUI", 392, 316,-1, -1 , BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS)) ;~ GuiSetState() TrayShow(1) ; show Edited May 16, 2021 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
MarcElser Posted May 24, 2021 Author Share Posted May 24, 2021 Hi, Removing the parent window and setting the style BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS) Actually works like a charm. Thanks for the help 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