Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Resolved Get the text displayed from interface components

Joined
Jun 8, 2017
Messages
187
I'm trying to read a string from the blast furnace bar dispenser interface ("Coal in furnace: 130"), this is in the interfacecomponent [27,107] I suspect. But when I try to use .getText() it returns "Coal to add: %2". This is a really annoying problem that I run into all the time.

Is there any way to get the string that's displayed on screen (or the value 130)?

Screenshot of blast furnace bar dispenser interface
Imgur: The most awesome images on the Internet
 
Go check out new bots and give helpful feedback.
Joined
Jan 31, 2016
Messages
5,413
I'm trying to read a string from the blast furnace bar dispenser interface ("Coal in furnace: 130"), this is in the interfacecomponent [27,107] I suspect. But when I try to use .getText() it returns "Coal to add: %2". This is a really annoying problem that I run into all the time.

Is there any way to get the string that's displayed on screen (or the value 130)?

Screenshot of blast furnace bar dispenser interface
Imgur: The most awesome images on the Internet
The number may be a different component...
 
Joined
Jun 8, 2017
Messages
187
I know but I pretty much went through all the components / childeren / parents and found nothing.
 
Joined
Jun 8, 2017
Messages
187
Thats what I've been doing now but I was just wondering if there was any way to do this, for example you made a motherlode bot right? The sack in the top left also displays a number. It's kinda the same problem. But you probably just work around it instead of using that number?
 
Top