Types more than once - need to wait for image to vanish
Asked by
Alex Craske
So I'm new to this and need a basic code, it scans a region waits for an image to appear, when it does it types F once and then waits for the image to appear again a second or two later.
Here is my code:
while True:
if exists("V.png") : type("F")
The issue is that it types F over and over as long as the image is there, now the image will usually stay up for a second then go down then come back a second or two after that, so I would like it to type F, wait for a second, then look for the image again.
Thanks.
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Alex Craske for more information if necessary.
To post a message you must log in.