Solved
Forum Discussion
hunggsta
13 years agoOccasional Contributor
Trying to add some text to a Java Text Field on an already launched app. When I record the script I get something like:
var textfield = Sys["Process"]["javaw"]...["GPanel-133345"][Gjp"];
textfield["Click"](300,7);
I can run this script on the tested app and it will work. But when I restart the tested app, the number changes for GPanel and it can't find it.
I tried:
var textfield = Sys["Process"]["javaw"]...["GPanel*"][Gjp"];
and I get that it can't find the object GPanel*
var textfield = Sys["Process"]["javaw"]...["GPanel-133345"][Gjp"];
textfield["Click"](300,7);
I can run this script on the tested app and it will work. But when I restart the tested app, the number changes for GPanel and it can't find it.
I tried:
var textfield = Sys["Process"]["javaw"]...["GPanel*"][Gjp"];
and I get that it can't find the object GPanel*