|
Post by wodopad on Oct 15, 2017 17:10:22 GMT
Hello! I installed Ankulua from PlayMarket and my script does not click. The conditions and illumination of the regions are working, but there is no click.
Sample script:
-- ========== Settings ================
Settings:setCompareDimension(true, 1080)
Settings:setScriptDimension(true, 1080)
Settings:set("MinSimilarity", 0.4)
Settings:setScanInterval(0.4)
-- ========== main program ===========
aRegion = Region (860, 360, 880, 380)
bRegion = Region (1020, 580, 1040, 600)
while(true) do
if(aRegion:exists(Pattern("0_20_v.png"):similar(0.8)) or aRegion:exists(Pattern("1_20_v.png"):similar(0.8))) then
if(bRegion:exists(Pattern("black.png"):similar(0.6))) then
click(Location(math.random (80,1000), math.random(260,560)))
click(Location(math.random (80,460), math.random(1680,1840)))
end
end
end Device: Xiaomi Redmi Note 4x, works through Daemon.
|
|
|
Post by wodopad on Oct 15, 2017 18:43:17 GMT
|
|
|
Post by AnkuLua on Oct 15, 2017 23:38:14 GMT
|
|
|
Post by wodopad on Oct 16, 2017 6:24:15 GMT
Thank you!
USB Debugging (Security settings) has been disabled. I do not know English well, so I missed it.
Now works.
|
|