Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Systray
#1
Is it possible to add an own entry to the LA systray menu, like it is possible in QM?
Or do i have to use an own icon?
#2
Possible without a separate icon.

Add this in file Window triggers:

Code:
Copy      Help
        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;
#3
Cool thanks. It took me a while to get warm with LA, but now with using Claude Desktop and MCP it is quite a lot of fun.


Forum Jump:


Users browsing this thread: 1 Guest(s)