Ack! I forgot that I added some script in my action to activate the S+ window and post a NULL message to it before showing the popup, that will cause the popup to close on focus change (it's a Windows thing, not S+)
I may end up adding it inside the S+ code, but I need to think it through to make sure that's the best course of action, as I hate to add hardcoded logic to something that someone may not want to have happen:local swnd = acFindWindow("STROKESPLUS",nil)
acActivateWindow(swnd)
acDelay(20)
acPostMessage(swnd, 0x0000, 0, 0)
acDelay(20)
acCreatePopupMenu(gex, gey, "Item 1,Item 2,-,New Menu,-,Item 3,-,Close Menu", ",", "popupMenu")