03-10-2026, 06:26 AM
Possible without a separate icon.
Add this in file
Add this in file
Window triggers: popupMenu myTrayMenu = null;
Triggers.Window[TWEvent.VisibleNew, "", "Au.popupMenu", "Au.Editor.exe", contains: "e 'MENUITEM' Disable triggers", later: TWLater.Destroyed] = o => {
if (o.Later == 0) {
var m = myTrayMenu = new popupMenu("dd9b9b05-ae4f-4c3a-b5b9-7bb97eb3d447");
#region my tray menu items
m["One"] = o => { print.it(1); };
m["Two"] = o => { print.it(2); };
#endregion
m.Show(excludeRect: o.Window.Rect);
myTrayMenu = null;
if (o.Window.IsAlive) {
o.Window.Close();
}
} else if (o.Later == TWLater.Destroyed) {
myTrayMenu?.Close();
}
};
Triggers.Window.Last.EnabledAlways = true;