← Back to team overview

sikuli-driver team mailing list archive

[Question #219739]: Types more than once

 

New question #219739 on Sikuli:
https://answers.launchpad.net/sikuli/+question/219739

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.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.