Let's take a simple script:
-- ========== Settings ================
Settings:setCompareDimension(true, 720)
Settings:setScriptDimension(true, 720)
-- ========== main program ===========
while (true) do
Region(1212, 68, 10, 10):existsClick(Pattern("image.png"):similar(0.7), 0
end
So on 2 different Emulator instances, (1480, 720 and 2220x1080) the script works as intended:
- looks for a specific image(pattern) on a specific location (10x10px), 0.7 similarity, every 0 seconds
- clicks on it IF exists
Also, I managed to create a couple of script on emulators, and I honestly love the flexibility offered by AnkuLua.
I used SnapYourScript to save Images and Locations, very quick and easy.
HOWEVER
No matter how many times I try, It won't work on my s9 mobile phone.
I've tried to save the image from the phone but it didn't work. (no crashes, keeps looking for images)
tried to set resolution at 1480x720, 2220x1080, 2960x14440. (no crashes, keeps looking for images)
Every custom made script I make for my phone using SnapYourScript, doesn't work. (no crashes, keeps looking for images)
Irony, everything I make with Snap and Play works. and can be exported to any emulator without a single issue.
Can you please help me out?