lokaloka Posted December 12, 2022 Share Posted December 12, 2022 Im using mirror mode, soo slow and i've another problem. Btw im switching from poopbot, interaction in poopbot API so simple like Inventory.get("item in inventory").useOn("Target Object"). How to archive this using poopbot? So here example my code if (objectName != null){ for(int i : inventorySlotList){ if (getInventory().getItemInSlot(i).getName().equals("Item Name")){ log("Item found"); mouse.click(new InventorySlotDestination(getBot(), i), false); sleep(random(250,500)); objectName.interact(); sleep(random(250,500)); } else { log("Item not found"); i++; } log("i: " + i + "Slot Position: " + inventorySlotList); } } else { sleep(random(500,1000)); } Problem : 1. Slow interaction between item in inventory to RS2Object. I've change setting to 50ms in mirror mode. How to archive 2 tick click item in Inventory to RS2Object? 2. Sometimes when ObjectName become null in a second, mouse clicking item in inventory from slot x to slot 27 and than continues my task from previous position thanks Quote Link to comment Share on other sites More sharing options...
Khaleesi Posted December 12, 2022 Share Posted December 12, 2022 Without too much extra stuff it would be this Don't use static sleeps, Use Conditional sleeps to speed it up if (getInventory().isItemSelected()) { object.interact("Use"); } else { getInventory().interact("Use", ITEM_NAME); } 1 Quote Link to comment Share on other sites More sharing options...
lokaloka Posted December 12, 2022 Author Share Posted December 12, 2022 (edited) 11 minutes ago, Khaleesi said: Without too much extra stuff it would be this Don't use static sleeps, Use Conditional sleeps to speed it up if (getInventory().isItemSelected()) { object.interact("Use"); } else { getInventory().interact("Use", ITEM_NAME); } uh tyty xD im using Sleep.sleepUntil for conditional sleep (another post from explv) i think. Another question bro, how to increase interaction speed? I think its 1 or 2 second / interaction is tooooo slow Edited December 12, 2022 by lokaloka Quote Link to comment Share on other sites More sharing options...
Gunman Posted December 12, 2022 Share Posted December 12, 2022 27 minutes ago, lokaloka said: I think its 1 or 2 second / interaction is tooooo slow Use new mouse and customize the mouse profile https://osbot.org/api/org/osbot/rs07/event/interaction/MouseMoveProfile.html 1 Quote Link to comment Share on other sites More sharing options...
mazharsaab Posted December 12, 2022 Share Posted December 12, 2022 hi Quote Link to comment Share on other sites More sharing options...