1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Resolved Get the text displayed from interface components

Discussion in 'Developer Support' started by SilenceP44, Sep 2, 2017.

  1. SilenceP44

    Joined:
    Jun 8, 2017
    Messages:
    184
    Likes Received:
    87
    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

     
  2. Best Answer:
    Post #6 by Party, Sep 2, 2017
  3. awesome123man

    awesome123man Go check out new bots and give helpful feedback.

    Joined:
    Jan 31, 2016
    Messages:
    5,413
    Likes Received:
    1,662
    The number may be a different component...
     
  4. SilenceP44

    Joined:
    Jun 8, 2017
    Messages:
    184
    Likes Received:
    87
    I know but I pretty much went through all the components / childeren / parents and found nothing.
     
  5. awesome123man

    awesome123man Go check out new bots and give helpful feedback.

    Joined:
    Jan 31, 2016
    Messages:
    5,413
    Likes Received:
    1,662
    Well ask around... You may have to find another way around it...
     
  6. SilenceP44

    Joined:
    Jun 8, 2017
    Messages:
    184
    Likes Received:
    87
    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?
     
  7. Party

    Party Client Developer

    Joined:
    Oct 12, 2015
    Messages:
    3,708
    Likes Received:
    1,606
    It's a Varp/Varbit.
     
  8. SilenceP44

    Joined:
    Jun 8, 2017
    Messages:
    184
    Likes Received:
    87
    Thanks, looked into varbits for the first time and this was indeed what I needed!
     

Share This Page

Loading...