How to set up priorities?

Asked by zroyax on 2019-04-03

I need help to create a part of my script, I want that if a certain image pops up at any time during the script then it does something and after that it goes back to what it was doing. I'm very new to coding I really don't know how I could write it. Thanks in advance guys
Here's the script that needs to be completed:

running = True
while True:
    wait("1554236145760.png", FOREVER)
    wait (5)
    wait ("1554236161631.png", FOREVER)

Question information

English Edit question
Sikuli Edit question
No assignee Edit question
Last query:
Last reply:
fran (franly) said : #1

You could use: if, Else or elif depends what you need. Maybe create a function ^^

Can you help with this problem?

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

To post a message you must log in.