Action after Menu Click

Hi

Is there something like 'performAction after…
I would like to have something triggered after I did click on a specific Menu Bar menu item.

F.e I click on ‘File’ > MyMenu Item
do_My_Script_For_MyMEnuItem
// close menu ( end highlighting )
Do_SomeMore_Action
// done?, go to on Idle

I guess I could
click on ‘File’ > MyMenu Item
do_My_Script_For_MyMEnuItem + set a doThisOnIdleVar to 1
// close menu ( end highlighting )
check on Idle if doThisOnIdleVar == 1
Do_SomeMore_Action + set a doThisOnIdleVar to 0

// done?, go back on Idle

But, maybe there is a better Idea.
At least I think there is! :slight_smile: