horus
New Member
Posts: 2
|
Post by horus on Apr 15, 2021 11:21:55 GMT
Hi,
I have created a code to wait for the image and click, but coming to auto it is not clicking. I could see the toast waiting but auto button is not being clicked before 50sec wait time. Images used here are captured using snap and play and renamed it running the script in same device.
scriptDimension = 2260 Settings:setScriptDimension(true, scriptDimension) Settings:setCompareDimension(true, scriptDimension)
battle = Pattern("battle.png"):similar(0.6) ready = Pattern("ready.png"):similar(0.6) auto = Pattern("auto.png"):similar(0.6) conti = Pattern("conti.png"):similar(0.6) auto_region = Region(0, 63, 200, 200) conti_region = Region(966, 845, 200, 200)
existsClick(battle,5) existsClick(ready,15) toast("Matching") auto_region:existsClick(auto,50) toast("waiting") wait(240) toast("exit wait") conti_region:existsClick(conti,120)
|
|
|
Post by AnkuLua on Apr 16, 2021 22:27:54 GMT
Use highlight to make sure the region is correct. Or don't use region.
You can also stay on the auto screen to make sure if it works.
And sometimes, it's just because the button shown, but not ready to be pressed. You can duplicate the line.
|
|