Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • Try asking for help in the chatbox
  • Moving an item to a different Inventory position


    GuNCuSSioN
     Share

    Recommended Posts

    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

    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

    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.

    Edited by PhilBox
    Link to comment
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
     Share

    ×
    ×
    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.