Jump to content

TrayItemSetOnEvent and getting the last clicked tray item


Recommended Posts

I'm using TrayItemSetOnEvent to call functions from a tray script, which works fine... but I'm dynamicaly updating the list of tray items in a submenu and they all call the same function. However, the function does different stuff depending on which trayitem was clicked....

my question is, is there something like a @HotkeyPressed for the tray menu? If not, I suppose I could use the radio trayitems, but what is the most efficient way to find out which trayitem is checked? I suppose I could put the Control ID's into an array as I create them and then search that, but I'm hoping there's a better way?

thanks!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...