← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #168513]: Find out accuracy of first sikuli script

 

Question #168513 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/168513

    Status: Open => Answered

RaiMan proposed the following answer:
--- script 1:
use my mail at and send all stuff (especially the .sikuli folder) zipped together in one zip (the more screenshots the better). I will manage ;-)

-- script 2:

this should work:

while exists(user image):
   sleep (5)

pop ("user logoff")

If the message comes, though user still logged on, the image "user image" is not found.
To make it more transparent:

userImg = "captured user image.png"

if not exists(userImg):
    print "user not online"
    exit(1)

while exists(userImg):
   sleep (5)

pop ("user logoff")

So you at least get a message, that Sikuli cannot find the given user
image.

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