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

I currently have a very simple script which has a low-efficiency section: 

    while not exists(end_condition): 
        wait(action_available, 120)
        doubleClick(action_available)
    ... more code

Basically, I'd love to be able to check for action_available and end_condition 
at the same time: 

    while 1: 
        if exists(end_condition): 
            break
        if exists(action_available):
            doubleClick(action_available)
        sleep(5)

... but in a prettier fashion. Does sikuli come with this functionality built 
in (one of two events occurring as a result of an action) or am I doing it 
right already with the second snippet? 


Thanks
A

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

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to