Sign in to follow this  
Followers 0
daveed

Mimimize to Icon Taskbar

4 posts in this topic

How do you hide the taskbar menu on mimimize so it only displays in the icon taskbar mananger?

Thanks in advance

Share this post


Link to post
Share on other sites



#NoTrayIcon
#include <GuiConstants.au3>
#include <Constants.au3>

Opt("TrayOnEventMode",1)
Opt("TrayMenuMode",1) 
  
TraySetOnEvent($TRAY_EVENT_PRIMARYUP,"SpecialEvent")
;~ TraySetState(2) ; hide

GuiCreate("MyGUI", 392, 316,-1, -1 , BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS))
GuiSetState()

While 1
    $msg = GuiGetMsg()
        Select
        Case $msg = $GUI_EVENT_MINIMIZE 
            TrayShow(1) ; show

        Case $msg = $GUI_EVENT_CLOSE
            ExitLoop
    EndSelect
WEnd

Func SpecialEvent()
    TrayShow(0) ; hide
EndFunc

Func TrayShow($show) ; 0/1 hide/show
    If $show Then
        GuiSetState(@SW_HIDE)
        TraySetState(1) ; show
        TraySetToolTip ("My app - click here to restore")
    Else
        GuiSetState(@SW_Show)
        TraySetState(2) ; hide
    EndIf
EndFunc

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Or this: http://www.autoitscript.com/forum/index.ph...st&p=390300

which will show the icon in the tray and allow you to restore/minimize it by clicking on the icon

Edit: or what Zedna said, which behaves more like a regular app minimized to screen :)

Edited by ResNullius

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