SlimShady Posted October 1, 2004 Posted October 1, 2004 Did you remove AutoItSetOption("GUITaskbarEntry") ?Because when I use it in my script, AutoIt says: Quote ---------------------------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
Administrators Jon Posted October 2, 2004 Administrators Posted October 2, 2004 SlimShady said: 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/
SlimShady Posted October 2, 2004 Author 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
Holger Posted October 2, 2004 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
Administrators Jon Posted October 2, 2004 Administrators Posted October 2, 2004 Holger said: 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/
Holger Posted October 2, 2004 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
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