December 17, 20214 yr I'm making a script for new accounts that requires walking into the wilderness. I'm using webwalk to get to that location, however the wilderness ditch warning stops it. I have code to click Enter wilderness but will not run because web walk hasn't reached the destination. Is there a more optimal solution than making two Areas and web walking to ditch and then web walking to wilderness location? Anything to interrupt the one webwalk method? or something similar
December 17, 20214 yr 47 minutes ago, rjames94 said: I'm making a script for new accounts that requires walking into the wilderness. I'm using webwalk to get to that location, however the wilderness ditch warning stops it. I have code to click Enter wilderness but will not run because web walk hasn't reached the destination. Is there a more optimal solution than making two Areas and web walking to ditch and then web walking to wilderness location? Anything to interrupt the one webwalk method? or something similar WebWalkEvent and set break condition https://osbot.org/api/org/osbot/rs07/event/WebWalkEvent.html
December 17, 20214 yr Author 1 hour ago, Gunman said: WebWalkEvent and set break condition https://osbot.org/api/org/osbot/rs07/event/WebWalkEvent.html So I have it working, but there's quite a big delay before clicking. I found some other threads on this about setting the event mode to async, I did that but the mouse moves rapidly and double clicks and not very reliable. Here's the code I have so far. if (state == 1 && !isMyWidgetWorking()) { WebWalkEvent webWalkEvent = new WebWalkEvent(obeliskArea); webWalkEvent.setBreakCondition(new Condition() { @Override public boolean evaluate() { return isMyWidgetWorking(); } }); execute(webWalkEvent); } else { getMyWidget().interact(); } https://imgur.com/afyCFDL
December 17, 20214 yr 21 minutes ago, rjames94 said: So I have it working, but there's quite a big delay before clicking. I found some other threads on this about setting the event mode to async, I did that but the mouse moves rapidly and double clicks and not very reliable. Here's the code I have so far. if (state == 1 && !isMyWidgetWorking()) { WebWalkEvent webWalkEvent = new WebWalkEvent(obeliskArea); webWalkEvent.setBreakCondition(new Condition() { @Override public boolean evaluate() { return isMyWidgetWorking(); } }); execute(webWalkEvent); } else { getMyWidget().interact(); } https://imgur.com/afyCFDL https://osbot.org/api/org/osbot/rs07/event/WebWalkEvent.html#setHighBreakPriority-boolean-
December 18, 20214 yr Honestly, weird, this is not a feature of the webwalk. Could be a boolean to allow it to jump the wildy ditch. @rjames94 you could make a feature request for this.
December 20, 20214 yr Author On 12/17/2021 at 3:48 PM, Chris said: https://osbot.org/api/org/osbot/rs07/event/WebWalkEvent.html#setHighBreakPriority-boolean- This did it, thank you.
Create an account or sign in to comment