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

while True:
   if exists.blue.png
      click(blue.png)
      while not Region(A).exists(A.png) or not Region(B).exists(B.png):
        Region(C).click (C.png)
      else:
        type(" ")
   else:
      sleep(1)

How can i modify this script into such a way that if A.png exists even if B.png 
dont, spacebar would be typed. Thing is when either of the don't exists 
spacebar would still be typed. I've tried the other way by modifying part of 
the script to :

while  Region(A).exists(A.png) or Region(B).exists(B.png):
  type(" ")
else:
  Region(C).click (C.png)

Apparently this doesn't work well since  A.png and B.png would only appear 
after a number of times C.png is clicked.
   

-- 
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