I’m trying to click a button when a window is activated by using interalframeactivated
if districtnumber==1:
system.gui.getParentWindow(event).getComponentForPath('Root Container.Container.Button').doClick()
The issue is that the districtnumber integer only has a scope within the event handler. How do I use a a system/client tag and make it visible to the event handler? There is an indent after the if statement but it didn’t show up when published on the forum.