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

Hello, I am a newbie and have a question about the use of onAppear. The top 
code segment does not recognize the image when it appears during the loop (exit 
function not called). The bottom code segment does. Where is my problem. Using 
Linux and Sikuli X-1. Thanks. 

   WindowUR_CT.onAppear( image, test.releaseButton)
   WindowUR_CT.observe(background=True)  
   for x in range(50):
       wait(.5)
       test.movePoint(-1, 0)
       if test.done == 1:
          break                 
   WindowUR_CT.stopObserver() 

   WindowUR_CT.onAppear( image, test.releaseButton) 
   for x in range(50):
       WindowUR_CT.observe(.5, background=False)
       test.movePoint(-1, 0)
       if test.done == 1:
          break
       WindowUR_CT.stopObserver() 

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