#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
Opt("GUIOnEventMode", 1)
Opt("TrayOnEventMode", 1)
TraySetClick(8)
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 318, 168, 214, 147)
GUISetOnEvent($GUI_EVENT_CLOSE, "Form1Close")
GUISetOnEvent($GUI_EVENT_MINIMIZE, "Form1Minimize")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
TraySetOnEvent(-7, "TrayClick")
While 1
Sleep(100)
WEnd
Func Form1Close()
Exit
EndFunc ;==>Form1Close
Func Form1Minimize()
GUISetState(@SW_HIDE)
EndFunc ;==>Form1Minimize
Func TrayClick()
GUISetState(@SW_SHOW)
EndFunc ;==>TrayClick
|