Jump to content

Windows Focus for Java based application

Recommended Posts

Hi All,

I am launching Java based application and injecting the credentials. As of now the behavior of script getting changed every time its launched. I found that since its java based its loosing its focus from the current window.

First it will launch the main page and will request for profile to be created and then pass credentials in next window. On each window I am using hotkeys to move to next window. While script is executing by mistake it i click on other tab its looses its focus. How to make it so that it should not loose its focus?

PFA screenshot for your reference.

Any help on this is much appreciated. 


Link to post
Share on other sites


Thanks for your inputs. Sorry I am new to programming and trying to understand on how to use JAB. I have attached my code here, is it only i need to call JAB function untill where i want to have focus set or different. Can you guide on that I will try accordingly and test.


Edited by prayi
Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...