Activate a window on the background

I am building an automation process in which I click on a button on a Java application. This results on the launch of couple of screens and the current screen is the one on top. How can I make the current window to be one of the screens in the background? I tried to use ‘Attach Window’ and then click on the screen I want to indicate that’s the target window but it does not work.
Any help is much appreciated.

1 Like

Try to use Activate and check

1 Like

Thank you for your reply.

It’s not working for me

You may try the following code

The objWindow is the out argument of AttachWindow