Opt("TrayOnEventMode", 1)
Opt("TrayMenuMode", 1 + 2)
$test = TrayCreateItem("test")
TrayItemSetOnEvent(-1, "test")
$exit = TrayCreateItem("exit")
TrayItemSetOnEvent(-1, "quit")
Global $i
While 1
working()
WEnd
Func working()
For $j = 0 To 100
Sleep(100)
$i = $j
Next
EndFunc
Func test()
Msgbox(0, "", $i)
EndFunc
Func Quit()
Exit
EndFunc