|
Post by progamer on May 20, 2016 10:41:46 GMT
I want to automate farming in aguemented reality game called ingress. in this game I need to click on "portals" and then click "hack" button on screen that appears. then click on next portals and repeat the trick (will add more actions, later, but this is the begining). problem is, that screen is not static for many seconds, it is moving with player, and since this is supposed to be bot who is hacking during driving, etc it cannot rely on stoping on place, to hack all portals and move forward. one possible solution that appears here is to create internal database of hacked portals (I can see portal name after i click on it), and hack it only if it was not hacked (there is 5 minute cooldown for next hack). to be sure that on different place bot will try all possible portals when standing on same spot, best seems to be not to click on first detected image, but on random detected image. and if it was hacked (already in internal database), try to find next portal. question is, is there some way how to keep this list more persistent ? also secondary question, is there some way how to also get device location to my script ? I could use it for simplification as well (when phone is moving, at some speed no reason to keep internal list, etc).
|
|