Form input automation

We are trying to automate an input process on a web based application. We are able to do the login and then by using a Java script (the tool bar is in java) select the appropriate section for input. What happens is another window appears and we have no access to it. we can't use the URL because each page / window is verified so llnking to it is not feasable at least as far as I know. Does anyone know how to identify the window and set focus to it so that we can automate the entry to it?

We are trying to automate an input process on a web based application. We are able to do the login and then by using a Java script (the tool bar is in java) select the appropriate section for input. What happens is another window appears and we have no access to it. we can't use the URL because each page / window is verified so llnking to it is not feasable at least as far as I know. Does anyone know how to identify the window and set focus to it so that we can automate the entry to it?

I wrote a program at work to automatically enter a license key into another program to avoid having to type it out all the time... It's called MobileXXX but has nothing to do with porn haha. (Use Spy++ to figuire out the window/control you are looking for.) I'll just post the code here: