Sign in to follow this  
Followers 0
fisofo

TrayItemSetOnEvent and getting the last clicked tray item

3 posts in this topic

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!

Share this post


Link to post
Share on other sites



@TRAY_ID Last clicked item identifier during a TraySet(Item)OnEvent action.

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

@TRAY_ID Last clicked item identifier during a TraySet(Item)OnEvent action.

8)

Thing of beauty, thanks Val.

Share this post


Link to post
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
Sign in to follow this  
Followers 0