|
Post by Exilereven on Jul 21, 2021 20:48:16 GMT
function imageTester() local _files = scandir(DIR_IMAGES) local _found = {}
snapshot() for i,t in ipairs(_files) do local img = Pattern(t,0):mask() if exists(img) then table.insert(_found, t) getLastMatch():highlight(3) end end usePreviousSnap(false) print(_found) end
trying to use mask but mot sure im using it correctly. anytime i try and use mask in any way with any image, ankulua just crashes. am i doing something wrong here.
using accessibility , media projection
|
|
|
Post by AnkuLua on Jul 21, 2021 22:32:18 GMT
Just Pattern(t):mask(), not Pattern(t,0):mask()
|
|
|
Post by Exilereven on Jul 22, 2021 11:50:52 GMT
Just Pattern(t):mask(), not Pattern(t,0):mask() tried both. literally this will crash ankulua for me. 1 liner if exists(Pattern('img.png'):mask()) then end i press play and it lags about 3 seconds and closes ankulua everytime. my setup: Ankulua 8.9.0-pro2-hide Xiaomi Redmi Note 9 Pro- 6g ram Android 11 system
|
|
|
Post by AnkuLua on Jul 22, 2021 23:58:18 GMT
Just Pattern(t):mask(), not Pattern(t,0):mask() tried both. literally this will crash ankulua for me. 1 liner if exists(Pattern('img.png'):mask()) then end i press play and it lags about 3 seconds and closes ankulua everytime. my setup: Ankulua 8.9.0-pro2-hide Xiaomi Redmi Note 9 Pro- 6g ram Android 11 system What's the crash? If app crash, please send the logcat to us, PM or email ankulua@gmail.com ankulua.boards.net/thread/1319/faq#crash
|
|