﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
2233	TraySetOnEvent does not set $TRAY_EVENT_PRIMARYDOWN properly	MrCreatoR <mscreator@…>		"Check this example:

{{{
#NoTrayIcon
#include <Constants.au3>

Opt(""TrayOnEventMode"", 1)
Opt(""TrayMenuMode"", 1+2) ; Default tray menu items (Script Paused/Exit) will not be shown.

TrayCreateItem(""Exit"")
TrayItemSetOnEvent(-1, ""ExitEvent"")

TraySetOnEvent($TRAY_EVENT_PRIMARYDOWN, ""SpecialEvent"")
TraySetOnEvent($TRAY_EVENT_PRIMARYUP, ""SpecialEvent"")
TraySetState()
TraySetClick(16)

While 1
    Sleep(10) ; Idle loop
WEnd

Func SpecialEvent()
    Switch @TRAY_ID
        Case $TRAY_EVENT_PRIMARYDOWN
            MsgBox(64, ""SpecialEvent-Info"", ""Primary mouse button pressed down."")
        Case $TRAY_EVENT_PRIMARYUP
            MsgBox(64, ""SpecialEvent-Info"", ""Primary mouse button clicked."")
    EndSwitch
EndFunc

Func ExitEvent()
    Exit
EndFunc
}}}

Both MsgBoxes shown after we release primary mouse button.
Expected behavior is that first MsgBox should be shown after we hold down primary mouse button, and second after we release the button."	Bug	closed		AutoIt	3.3.8.1	None	No Bug		
