and also asked in v2 on Discord.
It seems there is currently no way to delete the standard tray menu items.
Cap'n'Odin thinks it might be due to this: https://github.com/Lexikos/AutoHotkey_L/commit/0c9151f25bc32f998ec0514053151034d80b6c2b
Why does this code throw an "Unknown method" error with a104?
It's example #3 from "tray menu (customizing)"
Code: Select all
global tray := A_TrayMenu ; For convenience.
tray.delete ; Delete the standard items.
tray.Add("reload", "reload")
Error: Unknown method.
Specifically: delete
Line#
001: tray := A_TrayMenu
---> 002: tray.delete()
003: tray.Add("reload", "reload")