maui
New Member
Posts: 1
|
Post by maui on Sept 5, 2020 1:12:04 GMT
I dont know what im doing in the slightest i was wondering if someone could link me to a proper tutorial or tell me how to properly detect an image under certain circumstances like i want it to click a x button only when the timer goes down not during the timer
|
|
ATG
Junior Member
Posts: 79
|
Post by ATG on Sept 5, 2020 2:55:09 GMT
every information is in tutorial section:
Beginner on how to develop script:
there are few ways to do what you want. let me give you few simple examples wait(10) -- wait for 10 seconds. if you know the next image will appear within 10 second. you can change the time you want.
if exists('target.png') then -- click on the image when found click('target.png') end
or
wait(10) if existsClick('target.png') then end
wait(10) if Region(100,100,100,200):exists('target.png') then click('target.png') end
or wait(10) if Region(100,100,100,200):existsClick('target.png') then end
if you don't want to use wait(), then you can do this:
if existsClick('target.png', 10) then -- looking for image within 10 second. if image appear after 2 second, it will quickly click on your image end
if you need to click on an image with high similarity like exact match, then you can do this:
if existsClick(Pattern("target.png"):similar(0.99)) then end
|
|