← Back to team overview

sikuli-driver team mailing list archive

[Question #169307]: OBSERVE(FOREVER) but FINDFAILED

 

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

Hello, first post here. This is my code:

def myH(e):
	hover(PICTURE)
	stopObserver()
	observe(FOREVER)
 
onAppear(PICTURE, myH)

observe(FOREVER)


After some time it stops and I get the following message:


[error] Message d'erreur : Traceback (most recent call last):  
File "C:\Users\ALEXAN~1\AppData\Local\Temp\sikuli-tmp4889400881574180526.py", line 10, in    observe(FOREVER)  
File "C:\Program Files (x86)\Sikuli X\sikuli-script.jar\Lib\sikuli\Region.py", line 255, in observe  
Line 6, in file C:\Users\ALEXAN~1\AppData\Local\Temp\sikuli-tmp4889400881574180526.py

at org.sikuli.script.Region.handleFindFailed(Region.java:349)  
at org.sikuli.script.Region.wait(Region.java:420)  
at org.python.proxies.sikuli.Region$Region$1.super__wait(Unknown Source)  
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)  
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)  
at java.lang.reflect.Method.invoke(Unknown Source) 

org.sikuli.script.FindFailed: FindFailed: can not find 1314432731963.png  
Line 6, in file C:\Users\ALEXAN~1\AppData\Local\Temp\sikuli-tmp4889400881574180526.py


Why am I getting this error? All I want to do is to make a script that hovers over a picture when it appears with an endless loop.

Thanks for the help.

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