|
Post by bishop on Feb 27, 2020 11:16:05 GMT
Is there a way to force snap and play to click on the target found only once? Once it has triggered it, it should not repeat the click even if it finds the image.
|
|
|
Post by AnkuLua on Feb 28, 2020 3:40:04 GMT
Is there a way to force snap and play to click on the target found only once? Once it has triggered it, it should not repeat the click even if it finds the image. Change the action to action = 'if (not pngFound) then click(matchResult); pngFound = true end'
|
|
|
Post by kumarke on Sept 25, 2020 18:42:39 GMT
Can you please elaborate that function please
|
|
|
Post by AnkuLua on Sept 25, 2020 23:21:44 GMT
Because the variable pngFound isn't defined at first, the action will run and click the matchResult. Then pngFound is set to true.
After that, the if condition isn't true, therefore, the matchResult will not be clicked.
|
|