Support > Forums > OpenBots Studio > OpenBots Studio - Close Window Command Blocked by "Save Changes Dialog"

OpenBots Studio - Close Window Command Blocked by "Save Changes Dialog"

Andy Menon

  • Reporter
  • Calender Icon October 29,2022 at 11:51 PM

Hello, If a Notepad window is attempted to be closed without being saved, the Save Changes dialog blocks the Close Window Open Bots command. The command can't even proceed to click on the "Don't Save" button to cancel the changes and close the unsaved Notepad window.

How to Simulate this condition?

  1. Manually open a new Notepad Window
  2. Write some text to it , and do not Save
  3. In Studio, add a Close Window Command targeted to the Unsaved Notepad window
  4. Run Project
  5. Robot will try to close the window
  6. Notepad will display the Save changes dialog
  7. The Robot will be stuck until the Save changes dialog is manually closed

Current Solution: I got around it by using Special Key Commands Alt+F+x to close the Notepad dialog and then use the Send Click command to identify the "Don't Save" button to close the Notepad window without changes.

Thanks, Andy

This forum has 314 topics, 681 replies, and was last updated 20 days ago by Support Agent

Nataly Alvarado...

  • Participant
  • Calender Icon October 31,2022 at 2:01 PM

Hi andymenon2012,

Thanks for submitting your request. We will review your feature request, and accommodate it in our future releases as seemed fit.

Please note that the Close Window command is meant to mimic the actions of a user attempting to close the indicated window. In the case of the unsaved notepad, this action would trigger the mentioned pop-up. The command does not continue to the next action until the windows is successfully closed.

On the other hand, the Stop Process command can be used to kill or close the target application. In this case, if you set the command to kill Notepad, this will bypass the pop-up triggered and terminate the application immediately. Using the Stop Process command in "close" mode will trigger the close action and go to the next step even if the pop-up is triggered and undismissed.

Thanks!

You are not authorized to reply, please click here to login and add your reply to this topic.