Bhombdabs Posted May 10, 2018 Share Posted May 10, 2018 Can someone please post their scrolling code? Mine is currently giving me this [ERROR][05/09 10:31:41 PM]: Uncaught exception! java.lang.NoSuchMethodError: org.osbot.rs07.api.Bank.scrollToSlot(II)V at nl.reveance.bankorganizer.b.c.a(Unknown Source) at nl.reveance.bankorganizer.b.g.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Quote Link to comment Share on other sites More sharing options...
TheManWhoBots Posted May 10, 2018 Share Posted May 10, 2018 (edited) Bank scrolling has been temporarily depreciated. Check the most recent Dev update for version 2.5.7 For bank scrolls, try implementing your own mouse wheel scroll input Edited May 10, 2018 by TheManWhoBots Quote Link to comment Share on other sites More sharing options...
Chris Posted May 10, 2018 Share Posted May 10, 2018 Quote Link to comment Share on other sites More sharing options...
Bhombdabs Posted May 10, 2018 Author Share Posted May 10, 2018 2 hours ago, Chris said: 2 hours ago, TheManWhoBots said: Bank scrolling has been temporarily depreciated. Check the most recent Dev update for version 2.5.7 For bank scrolls, try implementing your own mouse wheel scroll input What's the best way to achieve this? With the same results Quote Link to comment Share on other sites More sharing options...
TheManWhoBots Posted May 10, 2018 Share Posted May 10, 2018 @Bhombdabs You could scan the current bank tab interface to get the amount of items, the current position, and the position of the item that you are searching for. Then use these variables to determine the duration of the mouse scroll velocity. I haven't used the BotMouseWheelEvent API, but I'm assuming it would be fairly easy. There might not be an easy way to get the current scroll position of the interface, but you could use a fixed velocity duration determined by the index of the target item. Play around with some values and eventually you should get the proper algorithm. You could also use a mix of mouse clicks on the bank scroll interface on the right side of the bank. This would be easier to implement considering there is a fixed amount of pixels scrolled each time 1 mouse click is sent, however this is less humanlike. I will possibly make my own methods for such activities in the future. If I do get it working, I'll pass you along some code. I plan on releasing some open source scripts as well. 1 Quote Link to comment Share on other sites More sharing options...
Bhombdabs Posted May 10, 2018 Author Share Posted May 10, 2018 3 hours ago, TheManWhoBots said: @Bhombdabs You could scan the current bank tab interface to get the amount of items, the current position, and the position of the item that you are searching for. Then use these variables to determine the duration of the mouse scroll velocity. I haven't used the BotMouseWheelEvent API, but I'm assuming it would be fairly easy. There might not be an easy way to get the current scroll position of the interface, but you could use a fixed velocity duration determined by the index of the target item. Play around with some values and eventually you should get the proper algorithm. You could also use a mix of mouse clicks on the bank scroll interface on the right side of the bank. This would be easier to implement considering there is a fixed amount of pixels scrolled each time 1 mouse click is sent, however this is less humanlike. I will possibly make my own methods for such activities in the future. If I do get it working, I'll pass you along some code. I plan on releasing some open source scripts as well. Got a Discord? PM me? Quote Link to comment Share on other sites More sharing options...
TheManWhoBots Posted May 11, 2018 Share Posted May 11, 2018 @Bhombdabs I don't have a discord, or voice recording software at the moment. One day I should. Also I can't seem to find the way to private message LOL. I'll be writing some scripts/methods in the future though, keep a look out for any posts I make 1 Quote Link to comment Share on other sites More sharing options...