SlimShady Posted October 1, 2004 Share Posted October 1, 2004 Did you remove AutoItSetOption("GUITaskbarEntry") ?Because when I use it in my script, AutoIt says:---------------------------AutoIt Error---------------------------Line 34 (File "C:\scripts\Gui\Test.au3"):AutoItSetOption("GUITaskbarEntry", 1)Error: Unknown option or bad parameter specified.---------------------------OK ---------------------------The option is still in the helpfile, so I assumed it works.Guess not Link to comment Share on other sites More sharing options...
SlimShady Posted October 2, 2004 Author Share Posted October 2, 2004 Can you tell me what's going on? Link to comment Share on other sites More sharing options...
Administrators Jon Posted October 2, 2004 Administrators Share Posted October 2, 2004 Can you tell me what's going on?You can now have multiple windows with multiple entries in the task bar, therefore a minimize to taskbar option made no sense (which window, which task, which icon, multiple tray icons, single icon? tray menus?). So we are thinking about it to see if there is any sensible variation. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
SlimShady Posted October 2, 2004 Author Share Posted October 2, 2004 Allright I understand. Meanwhile I managed to find a workaround: - Create a main window - Create a second window and make it a child window of the 1st - leave the main window hidden - show the child window Link to comment Share on other sites More sharing options...
Holger Posted October 2, 2004 Share Posted October 2, 2004 (edited) Here is a small example: #include "GUIConstants.au3" $parentgui = GUICreate("Parent",400,300) $childgui = GUICreate("Child",340,120,-1,-1,BitOr($WS_POPUP,$WS_CAPTION,$WS_SYSMENU),-1,$parentgui) GUISwitch($childgui) GUISetState(@SW_SHOW) While 1 $msg = GUIGetMsg(1) $ctrlmsg = $msg[0] $win = $msg[1] $posx = $msg[3] $posy = $msg[4] Select Case $ctrlmsg = -3 And $win = $parentgui ExitLoop Case $ctrlmsg = -3 And $win = $childgui GUISetState(@SW_HIDE) GUISwitch($parentgui) GUISetState(@SW_SHOW) EndSelect WEnd GUIDelete() Exit Hope, this helps a little bit. So long... Holger Edited October 2, 2004 by Holger Old project:GUI/Tray menu with icons and colors Other old stuff:IconFileScanner, TriState/ThreeState GUI TreeView, GUI ContextMenu created out of a TreeView Link to comment Share on other sites More sharing options...
Administrators Jon Posted October 2, 2004 Administrators Share Posted October 2, 2004 Here is a small example:#include "GUIConstants.au3" $parentgui = GUICreate("Parent",400,300) $childgui = GUICreate("Child",340,120,-1,-1,BitOr($WS_POPUP,$WS_CAPTION,$WS_SYSMENU),-1,$parentgui) GUISwitch($childgui) GUISetState(@SW_SHOW) While 1 $msg = GUIGetMsg(1) $ctrlmsg = $msg[0] $win = $msg[1] $posx = $msg[3] $posy = $msg[4] Select Case $ctrlmsg = -3 And $win = $parentgui ExitLoop Case $ctrlmsg = -3 And $win = $childgui GUISetState(@SW_HIDE) GUISwitch($parentgui) GUISetState(@SW_SHOW) EndSelect WEnd GUIDelete() ExitHope, this helps a little bit. So long...HolgerCase $ctrlmsg = -3should be:Case $ctrlmsg = $GUI_EVENT_CLOSE Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
Holger Posted October 2, 2004 Share Posted October 2, 2004 Alright, did forgot that you talk about this a few days ago :"> Thanks Old project:GUI/Tray menu with icons and colors Other old stuff:IconFileScanner, TriState/ThreeState GUI TreeView, GUI ContextMenu created out of a TreeView 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