Runs secund script on old tab

Hey Guys, hope you can help me!

I got a problem with my script/program. I have a script that makes a form, and when the form is generated is opens a new tab. After the first script(form-create script) is done, it then runs another script, that should fill the form. Both script works fine by them self, if i run them independently.

The problem is that when the secund script should run, it tries to run on the form-creating tab, but it should run on the new tab, where it should fill out the form.

Thanks if you have read so far!

You can with between tabs with Select Windows | tab=X