daveed Posted September 8, 2007 Share Posted September 8, 2007 How do you hide the taskbar menu on mimimize so it only displays in the icon taskbar mananger? Thanks in advance Link to comment Share on other sites More sharing options...
MISIIM Posted September 8, 2007 Share Posted September 8, 2007 Try something like this. GUISetOnEvent($GUI_EVENT_MINIMIZE, "window_OnMinimize", $window) Func window_OnMinimize() GUISetState(@SW_HIDE, $window) EndFunc Link to comment Share on other sites More sharing options...
Zedna Posted September 8, 2007 Share Posted September 8, 2007 expandcollapse popup#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 Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
ResNullius Posted September 8, 2007 Share Posted September 8, 2007 (edited) Or this: http://www.autoitscript.com/forum/index.ph...st&p=390300which will show the icon in the tray and allow you to restore/minimize it by clicking on the iconEdit: or what Zedna said, which behaves more like a regular app minimized to screen Edited September 8, 2007 by ResNullius 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