sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #56665
[Bug 1584054] Re: Find(String) not functional
** Changed in: sikuli
Status: New => Fix Released
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1584054
Title:
Find(String) not functional
Status in Sikuli:
Fix Released
Bug description:
Sikulix setup done by sikulixsetup-1.1.1-20160520.065527-27-forsetup.jar
OS Win 7 Pro
JRE 1.8.0_31
Function find() does not accept argument of type string.
Running this code >
# -*- coding: utf-8 -*
Debug.on(3)
import org.sikuli.script.TextRecognizer as TR
Settings.OcrReadText = True
Settings.OcrSearchText = True
Settings.OcrLanguage = "slk"
TR.reset()
#find("1463748965451.png")
find("Upozornenie")
#print m
#print m.getTarget()
r = Region(433,351,89,15)
r.highlight(5)
Causes >
[debug] FileManager: tempfile create: C:\Users\255304\AppData\Local\Temp\Sikulix_1244007538\sikuli-5908137321867601659.py
[debug] Jython: requested to use as default region: S(0)[0,0 1280x1024]
[debug] JythonScriptRunner: runPython: running script from IDE: Untitled.sikuli
[error] Image: could not be loaded: file:/C:/Users/255304/AppData/Local/Temp/Sikulix_1244007538/tmp-1705873482.sikuli/Upozornenie.png
[debug] Region: handleImageMissing: Upozornenie.png (capture missing )
[error] RunTimeIDE: Exists: Abort: Jython: at sikuli-5908137321867601659 (1)
[error] RunTimeIDE: ImageMissing: Upozornenie
[debug] IDE: Scriptrun: cleanup in handler for uncaughtException: java.nio.BufferOverflowException
[debug] Sikulix: cleanUp: 0
[debug] Image: purge: ImagePath: /C:/Users/255304/AppData/Local/Temp/Sikulix_1244007538/tmp-1705873482.sikuli/
[debug] ImagePath: new BundlePath: /C:/Work/AUT/c.sikuli/
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1584054/+subscriptions
References