Support Portal

for ProcessRobot and WinAutomation

Start a new topic
Answered

How do you close an application?

The process opens an application using the Run Application action and then stores the application's Process ID into %AppProcessId%.  Next, it attempts to close the application using the Close Window action, referencing %AppProcessId% using Get Windows by Window Instance/Handle but this results in this error message:


Runtime Error: Cannot close window, the targeted UI automation window is unavailable.


Thoughts?


Best Answer

UseTerminate Process Action. Supply the AppProcessId

1 Comment

Answer

UseTerminate Process Action. Supply the AppProcessId


1 person likes this
Login or Signup to post a comment