Two Quick Questions about native window actions (I am using AIR with HTML and JS):
2. How to define click event for System tray icon ? - So I can display something when my system tray icon is double-clicked.
1. Add an event listener to the window.nativeWindow object, listening for the NativeWindowDisplayStateEvent.DISPLAY_STATE_CHANGING or DISPLAY_STATE_CHANGE events.
2. Add an event listener to your SystemTrayIcon object. You can listen for click, mouseUp or mouseDown events, but doubleClick events are not dispatched by this object.