sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #28035
[Question #254077]: Turn on Text Search within a bat file.
New question #254077 on Sikuli:
https://answers.launchpad.net/sikuli/+question/254077
I have a .bat file called GetUSER.bat and it contains:
set PATH=C:\Sikuli\libs\;%PATH%
set SCRIPT=C:\Sikuli\Scripts\GetUSER.sikuli\GetUSER.py
"%JAVA_HOME%"\bin\java -cp %SIKULI_HOME%\sikuli-script.jar org.python.util.jython %SCRIPT%
However when I run the bat file Sikuli complains that "text search is currently switched off"(see below). I have text search switched on in my Sikuli IDE.
How do I turn on text search in my GetUSER.bat file above?
Thanks!
C:\Sikuli>set SCRIPT=C:\Sikuli\Scripts\GetUSER.sikuli\GetUSER.py
C:\Sikuli>"C:\Program Files (x86)\Java\jre7"\bin\java -cp C:\Sikuli\sikuli-scrip
t.jar org.python.util.jython C:\Sikuli\Scripts\GetUSER.sikuli\GetUSER.py
[error] 1409777544773.png looks like a file, but not on disk. Assume it's text.
[error] Region.find(text): text search is currently switched off
Traceback (most recent call last):
File "C:\Sikuli\Scripts\GetUSER.sikuli\GetUSER.py", line 8, in <module>
r = find("1409777544773.png")
Line 1671, in file Region.java
at org.sikuli.script.Region.wait(Region.java:1671)
at org.python.proxies.sikuli.Region$Region$0.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: Text search currently switched off
Line 1671, in file Region.java
C:\Sikuli>
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.