minimise a gui to the system tray
Edit~: Updated to support newer versions of Autoit, thanks to Zedna too I've used some of your suggestions
#NoTrayIcon
#include <GuiConstants.au3>
#include <Constants.au3>
Opt("GUIEventOptions",1)
Opt("TrayOnEventMode",1)
Opt("TrayMenuMode",1)
TraySetOnEvent($TRAY_EVENT_PRIMARYUP,"SpecialEvent")
$gui = GuiCreate("MyGUI", 392, 316,-1, -1 , BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS))
GuiSetState()
While 1
$msg = GuiGetMsg()