Sign in to follow this  
Followers 0
SlimShady

GUITaskbarEntry

7 posts in this topic

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 :)

Share this post


Link to post
Share on other sites



Can you tell me what's going on?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

#5 ·  Posted (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 by Holger

Share this post


Link to post
Share on other sites

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

:)

Case $ctrlmsg = -3

should be:

Case $ctrlmsg = $GUI_EVENT_CLOSE

;)

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0