Why is UIPath shrinking the window unexpectedly of a custom application?

Hi guys,

I’m currently automating a custom external application in our company. Sometimes it just works and sometimes it completely random shrinks the window as it would click this default windows button:
image

I have nowhere in the app set a maximize activity or something else. Also I didn’t fumbled around with the “use Application” settings:

At this point I don’t know where to continue from here onward. Any ideas what might be the problem?

Hi

Try using get active window activity and inside that place all your sequence of activities
So that it will get the active window in foreground

Cheers @GeraltDieSocke