Closing PopupMenu after selection

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
NickD
Pro Scripter
Posts: 58
Joined: Fri Sep 23, 2016 2:17 pm

Closing PopupMenu after selection

Post by NickD » Fri Feb 10, 2017 1:38 pm

I Have a script that uses PopupMenu to present user options and set variables based on the responses.
Sometimes after an option is chosen the Popupmenu fails to close until "Exit" is clicked.

Is there a command I can use to close the popup in the same conditionals that set the variables?

User avatar
JRL
Automation Wizard
Posts: 3501
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Re: Closing PopupMenu after selection

Post by JRL » Fri Feb 10, 2017 2:38 pm

What does "Exit" do that is special? Does it close the script? Is the popupmenu command in a loop? I was at first wondering if you were using a virtual machine or terminal services and the menu was just a screen vestige. If you can click on it again it sounds like it is truly still there, unless the click is spawning a screen refresh that makes the menu disappear.

I've used popupmenu> a number of times and never seen anything like what you're describing. I have one 6 year old application that is on 50 computers in our shop and the menu is selected multiple times every day on each computer. No one has ever complained. Trust me, if there was an issue, they would complain.

All that in mind. Try adding a Press Esc line to the menu items.

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts