Need help with clicking randomly, if the Picture appears

Asked by Alex Miller

Hey, i want that the Script clicks randomly if the Picture appears, i don't want that the Script clicks a exact point in the Picture, so here is the half of my Script

hopefully someone can help me with my this...

if exists("1548508520863.png"):
            wait("1548508539216.png")
            click("1548508551664.png")
            time.sleep(6)
            click(Pattern("1548508571883.png").similar(0.89))
            time.sleep(5)
            click("1548508632017.png")
            time.sleep(5)
            wait("1548508674409.png", 3)
            click("1548508682212.png")
        else:
            wait("1548508937465.png", FOREVER)
            click(Pattern("1548508954007.png").similar(0.90))
            time.sleep(9)
            click(Pattern("1548508984027.png").similar(0.86))

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

Can you help with this problem?

Provide an answer of your own, or ask Alex Miller for more information if necessary.

To post a message you must log in.