|
Post by trymyluck on Oct 29, 2017 15:49:09 GMT
hi is this the correct use of getlastmatch. Im getting attempt to index a nil value. what does this mean.
if Region(1000, 50, 240, 700):existsClick("spotrevive.png", 0.1) then
getLastMatch():hightlight(0.1) end
and im getting this "superuser granted to ankulua pro2" toast stuck at the screen, it doesnt even go away after i close ankulua. I do not have any toast msg in my script.
Thanks in advance
|
|
|
Post by AnkuLua on Oct 30, 2017 10:18:46 GMT
getLastMatch() is region related. If not belong to any region, it's for the whole screen. For your usage, it should be
reg = Region(1000, 50, 240, 700) if reg:existsClick("spotrevive.png", 0.1) then
reg:getLastMatch():hightlight(0.1) end
Please disable superuser grant notification in superuser settings.
|
|