Exception in thread "Thread-45" (SX 2.05 on Java 8)
#My Script *(simple)
myScriptPath = "D:\\MikE\\Sikuli Scripts"
addImportPath(
import ldFunc
#from ldFunc import * #v1.1.4 syntax
ldFunc.hunt()
#hunt()
---
sample of ldFunc
----
from sikuli import *
#(then a bunch of functions that are re-used between scripts)
#function hunt
def hunt():
for _ in range(5): #repeat function x times
if not exists(
try:
except FindFailed:
pass
if exists(
print "scrolled to bottom - fail hunt"
home()
break
else:
else:
print "scrolled to hunt"
if exists(
click(
sleep(2)
else:
sleep(0)
if exists(
click(
print "---found Hunt"
clearPopsi()
if exists(
click(
else:
sleep(0)
clearPopsi()
else:
print "hunt not ready"
home()
break
----
-Error-
Exception in thread "Thread-45" Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\
from Sikuli import *
File "C:\Users\
OEM_
AttributeError: type object 'TextOCR' has no attribute 'OcrEngineMode'
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: