December 21, 20223 yr I'm having trouble with a function to enter a friends POH. I'm familiar enough with using dialogue that involves simple continues and selecting options, but I can't find out how to enter text when asked for it. I do have a String variable MyHost I would like to use. Any help would be appreciated. void GoHome() throws InterruptedException { if (OutsideArea.contains(myPosition())) { if(getDialogues().inDialogue()) { //Not sure what to put here <<<------- } else { RS2Object MyPortal = getObjects().closest("Portal"); MyPortal.interact("Friend's house"); sleep(3000); } } else if (inventory.contains("Teleport to house")) { getInventory().getItem("Teleport to house").interact("Outside"); sleep(5000); } else { log("Stopping script... No way home"); stop(); } }
December 21, 20223 yr 9 minutes ago, Alakazizam said: I'm having trouble with a function to enter a friends POH. I'm familiar enough with using dialogue that involves simple continues and selecting options, but I can't find out how to enter text when asked for it. I do have a String variable MyHost I would like to use. Any help would be appreciated. https://osbot.org/api/org/osbot/rs07/api/Keyboard.html#typeString-java.lang.String-
December 21, 20223 yr Author 33 minutes ago, Chris said: https://osbot.org/api/org/osbot/rs07/api/Keyboard.html#typeString-java.lang.String- Got it, thanks Edited December 21, 20223 yr by Alakazizam
Create an account or sign in to comment