|
Post by jeaven on Mar 19, 2017 16:05:23 GMT
When flipping the phone over, the region areas look good, but not able to match images in the region.
Could it be the image needs to be flipped/inverted for a successful match? Is there setting/method to address this?
More or less wanted to know if this has been identified and if there is something out there already before wasting time testing.
|
|
|
Post by AnkuLua on Mar 19, 2017 23:35:39 GMT
There should be no issue for flipping (180 degrees rotation). But it may fail if rotating 90 or 270 degrees.
Share the screenshots before and after flipping if possible.
|
|
|
Post by jeaven on Mar 21, 2017 1:34:06 GMT
Normal: imgur.com/a/34OA5Rotated: imgur.com/a/4yobWAlso took a snap of the smaller match while phone was rotated and even while rotated, de rotation = no matchy - event to snaps taken while the phone was rotated. localPath = scriptPath()
dofile(localPath.."../AnkuLua/lib/commonLib.lua")
setImagePath("/sdcard/AnkuLua/image/")
setImmersiveMode(true)
Settings:setScriptDimension(true, 2560) -- DO NOT CHANGE
Settings:setCompareDimension(true, 1280) -- Change this to the value screenshots were taken from
-- ========== .png's & lists ===========
worldMap = (Pattern("worldMap.png"):similar(0.7)) --Region(1565, 1090, 150, 130)
worldMap_R = (Pattern("worldMap_R.png"):similar(0.7)) --Region(1565, 1090, 150, 130)
clickList = {
{target = worldMap, region = Region(1565, 1090, 150, 130)},
{target = worldMap_R, region = Region(1565, 1090, 150, 130)}
}
while (true) do
local choice = regionWaitMulti(clickList, 20*60, debug)
end
|
|
|
Post by AnkuLua on Mar 21, 2017 8:08:32 GMT
Always put the navigation bar at the right. This is the default behavior before Android 7.0.
Navigation bar at the left and non-immersive is not supported now.
|
|
|
Post by jeaven on Mar 22, 2017 2:09:47 GMT
Feeling like a stupid user at the moment and failing at google-fu... how to set always to the right? (Preferably not with flashing the rom or rooting).
|
|