bdbd
New Member
Posts: 24
|
Post by bdbd on Feb 26, 2019 15:56:05 GMT
I want to check whether getLastmatch is in the region. If matched image is in region, do not click. If matched image not is in region, click.
dont click = Region(x,y,w,h) if exists("123.png") then
match = getLastMatch() x = match:getX() y = match:getY() click(Location(x-200,y))
if not dont click:getLastMatch() then
toast("It's safe to click") else
toast("NOOOOOOOO dont touch") end
end
like this. but i dont know how to write the condition.
|
|
|
Post by AnkuLua on Mar 1, 2019 23:39:43 GMT
reg = Region(x, y, w, h) if (exists("123.png")) then if (not reg:exists("123.png", 0)) then click(getLastMatch()) end end
|
|