GuNCuSSioN 4 Share Posted March 10, 2021 Hey guys, working on a script and can't find a way to easily move an item to a specific position in the inventory. Anybody have any suggestions on what methods I should be looking at? Don't need code just guidance on what methods might work for this. Thank you! Link to comment Share on other sites More sharing options...
Hashtag 8691 Share Posted March 10, 2021 These can be used https://dreambot.org/javadocs/org/dreambot/api/input/Mouse.html#move-org.dreambot.api.input.mouse.destination.AbstractMouseDestination- https://dreambot.org/javadocs/org/dreambot/api/wrappers/items/Item.html#getDestination-- https://dreambot.org/javadocs/org/dreambot/api/input/Mouse.html#drag-java.awt.Rectangle- https://dreambot.org/javadocs/org/dreambot/api/methods/container/impl/Inventory.html#slotBounds-int- Link to comment Share on other sites More sharing options...
GuNCuSSioN 4 Author Share Posted March 12, 2021 Thank you I was able to get something working for the inventory. Appreciate that! Any suggestions on how to click an item that is showing in the GE screen when you start to search for your item? For example if I am searching for Green D'Hide Body and I type "Green D" and it pops up, any idea how I would then reference that area of the item showing in the buy screen and move my mouse to it? I know how to do mouse movements to items in inventory or bank and how to click/type but cant figure out an area based movement that is based on the item in the buy screen matching the item I program the script to buy. Hopefully that makes sense I also know that I can always use the GrandExchange.buyItem() method but I am trying to add some alternate logic. Link to comment Share on other sites More sharing options...
PhilBox 24 Share Posted March 12, 2021 https://dreambot.org/javadocs/org/dreambot/api/methods/grandexchange/GrandExchange.html#scrollToItem-org.dreambot.api.wrappers.widgets.WidgetChild- This is likely what you're looking for You'll likely have to use widgets to scan for the one with the "Green D'Hide Body' text. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.