Alakazizam Posted December 21, 2022 Share Posted December 21, 2022 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(); } } Quote Link to comment Share on other sites More sharing options...
Chris Posted December 21, 2022 Share Posted December 21, 2022 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- Quote Link to comment Share on other sites More sharing options...
Alakazizam Posted December 21, 2022 Author Share Posted December 21, 2022 (edited) 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, 2022 by Alakazizam Quote Link to comment Share on other sites More sharing options...