Question How to interact with chatbox interface OSR

Discussion in 'Developer Support' started by valithor, Aug 14, 2015.

  1. Sorry if the title is a little vague, as I had no idea what to call it.

    So in OSR when you click on a furnace to choose which bar to make a interface pops up in the chatbox area with all of the bars you can choose from. I know I can interact with the interface to tell it to make x of the item I want to make, but my question is how would I go about telling it how many to make once it asks?
     
  2. Do you have to write the number or right-click and select the number
     
  3. I have to write the number.
     
  4. Code (Text):
    1.     @Override
    2.     public void onMessageReceived(MessageEvent messageEvent) {
    3.         String msg = messageEvent.getMessage();
    4.         if (msg.contains("Whatever is says: Write the quantitiy poop") && messageEvent.getSender().isEmpty()) {
    5.             Keyboard.type("" + number, true);
    6.         }
    7. }
     
  5. iirc it's not an actual chatbox message, rather, the interface covers the chatbox.
     
    Qosmiof2 likes this.
  6. Thank you I will try this out :D

    I believe you are correct, but it is worth a shot.
     
  7. Well rs3 probably. But i remember the osrs had chatbox input i think.


    Sent from my iPhone using Tapatalk
     
  8. Code (Text):
    1. Interface write = Interfaces.newQuery().texts("text it asks").result().first();
    2.  
    3. if(write != null && write.isVisible()){
    4. Keyboard.type("" + number, true);
    5. }
    6.  

    Sent from my iPhone using Tapatalk
     

Share This Page

Loading...