Re: [Sikuli-driver] [Question #261508]: run .skl file using batch file

2015-06-28 Thread RaiMan
Question #261508 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/261508

RaiMan posted a new comment:
@vaibav:

--1. please post your own questions.

--2. your problem:
apparently you have a access right problem:
java.io.FileNotFoundException: C:\Users\Vaibhav\Desktop\runfromcmd\myskl.skl (Ac
cess is denied)

BTW: Why do you want to use .skl?
It is only there for historical reasons, and has no advantages - only 
disadvantages.
It is simply a zipped .sikuli folder, that internally is unzipped at runtime 
into the temp folder to run it.

-- 
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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #261508]: run .skl file using batch file

2015-02-04 Thread deva
Question #261508 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/261508

Status: Open = Solved

deva confirmed that the question is solved:
Thanks Raiman ..

Thats working

That solved my problem...

-- 
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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #261508]: run .skl file using batch file

2015-02-03 Thread deva
Question #261508 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/261508

Status: Answered = Open

deva is still having a problem:
sorry...

i am not able to understand this faq 2436

could you explain me about the script and how to start the script.. and
how to write script and how to switch on text recognition at run
time

-- 
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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #261508]: run .skl file using batch file

2015-02-03 Thread deva
Question #261508 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/261508

Status: Answered = Open

deva is still having a problem:
Thanks for your explanation..


i used below code to run .skl file

the following is my .bat file

.bat file:

@echo off
start /i /b /wait Path-to \\runsikulix.cmd -r %1

i used the below line run as command from java:

String[] command={cmd.exe, /C, Start +path-to .bat file+ +path-
to .skl file};

at where i have to add script line  in batch file

-- 
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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #261508]: run .skl file using batch file

2015-02-03 Thread RaiMan
Question #261508 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/261508

Status: Open = Answered

RaiMan proposed the following answer:
--- i am not able to understand this faq 2436

here the relevant part

How to switch it on at runtime:
---
TextSearch (find(some text)) and OCR (Region.text()) are currently switched 
off in the default with respect to the many issues.

The related Settings options to be used (set to true) with Sikuli API
(or outside the IDE):

Settings.OcrTextRead = true; // to switch on the Region.text() function

Settings.OcrTextSearch = true; // to switch on finding text with
find(some text)

Running scripts from inside the IDE alternatively the respective options
in the Preferences - …more options can be selected.



for the usage in a script (inside or outside IDE):
Settings.OcrTextRead = true  # to switch on the Region.text() function
Settings.OcrTextSearch = true   # to switch on finding text with find(some 
text)

how to run scripts from command line:
http://sikulix-2014.readthedocs.org/en/latest/faq/010-command-line.html#how-to-run-sikulix-from-command-line

-- 
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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #261508]: run .skl file using batch file

2015-02-03 Thread deva
Question #261508 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/261508

Status: Answered = Open

deva is still having a problem:
i am using sikuli version 1.1.0. i want to create batch to run .skl
file...

i followed the below command as you directed.

java -jar path-tosikulix.jar -r path-tosome.skl

but i got no module name 'something'... that is import error... since
i imported jave file as jar in IDE. so now i want to add parameter to
that java jar file...

previously i used sikuli version 1.0.1.. for that i create batch file to
run .skl file and also that jar file and ran via java eclipse...that
nothing is problem..

the thing is i have to handle the case that convert image to text.. for
this reason i switch over to sikuli version 1.1.0. i used old batch file
to run with sikuli 1.1 but its failed to convert text which means
img.text() is working..

i got the below ERROr

Text recognition is currently switched off...

-- 
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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #261508]: run .skl file using batch file

2015-02-03 Thread deva
Question #261508 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/261508

deva gave more information on the question:
Text Recognition is enabled.

but In Run IDE it works fine, but when i run it as executable file , it
shows that error.

-- 
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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #261508]: run .skl file using batch file

2015-02-03 Thread RaiMan
Question #261508 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/261508

Status: Open = Answered

RaiMan proposed the following answer:
if you enabled Text Recognition in IDE via Preferences, than this is not 
recognised when running from command line.
So if you want to use both, you have to use the script statements according to 
faq 2436

-- 
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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #261508]: run .skl file using batch file

2015-02-03 Thread RaiMan
Question #261508 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/261508

Status: Open = Answered

RaiMan proposed the following answer:
you have to
- run setup with option 3 additionally checked
- switch on the text functions before using them (see faq 2436)

-- 
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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #261508]: run .skl file using batch file

2015-02-01 Thread deva
Question #261508 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/261508

deva gave more information on the question:
Hi,

@ECHO OFF
start /i /b /wait D:\sikuli\runIDE.cmd -r path_to_my.skl

i used the above code to run .skl file of sikuli version 1.1  using
batch file.

but i got error  Text Recognition is currently switched off , no text.

Please could you help on it

-- 
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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Question #261508]: run .skl file using batch file

2015-01-31 Thread deva
New question #261508 on Sikuli:
https://answers.launchpad.net/sikuli/+question/261508

Hi, Raiman

i am using sikuli version 1.1.0. i want to create batch to run .skl file... 

i followed the below command as you directed.

java -jar path-tosikulix.jar -r path-tosome.skl

but i got no module name 'something'... that is import error... since i 
imported jave  file as jar in IDE. so now i want to add  parameter to that java 
jar file...

previously i used sikuli version  1.0.1.. for that i create batch file to run 
.skl file and also that jar file and ran via java eclipse...that nothing is 
problem..

the thing is i have to handle the case that convert image to text.. for this 
reason i switch over to sikuli version 1.1.0.  i used old batch file to run 
with sikuli 1.1 but its failed to convert text which means img.text() is 
working.. 

i got  the below ERROr

Text recognition is currently switched off...


-- 
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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp