Jump to content



Photo

GUITaskbarEntry


  • Please log in to reply
6 replies to this topic

#1 SlimShady

SlimShady

    AutoIt lover

  • Active Members
  • PipPipPipPipPipPip
  • 2,383 posts

Posted 01 October 2004 - 07:53 PM

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







#2 SlimShady

SlimShady

    AutoIt lover

  • Active Members
  • PipPipPipPipPipPip
  • 2,383 posts

Posted 02 October 2004 - 11:01 AM

Can you tell me what's going on?

#3 Jon

Jon

    Up all night to get lucky

  • Administrators
  • 9,544 posts

Posted 02 October 2004 - 12:29 PM

Can you tell me what's going on?

<{POST_SNAPBACK}>

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.

#4 SlimShady

SlimShady

    AutoIt lover

  • Active Members
  • PipPipPipPipPipPip
  • 2,383 posts

Posted 02 October 2004 - 02:51 PM

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

#5 Holger

Holger

    AutoIt Spammer

  • Developers
  • 1,384 posts

Posted 02 October 2004 - 03:49 PM

Here is a small example:
Plain Text         
#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, 02 October 2004 - 03:52 PM.


#6 Jon

Jon

    Up all night to get lucky

  • Administrators
  • 9,544 posts

Posted 02 October 2004 - 03:53 PM

Here is a small example:

Plain Text         
#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

<{POST_SNAPBACK}>

:)
Case $ctrlmsg = -3

should be:
Case $ctrlmsg = $GUI_EVENT_CLOSE

;)

#7 Holger

Holger

    AutoIt Spammer

  • Developers
  • 1,384 posts

Posted 02 October 2004 - 03:55 PM

Alright, did forgot that you talk about this a few days ago :"> :)
Thanks




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users