Re: [Sikuli-driver] [Question #660917]: how to run a sikuli script in jython.exe or jython IDE

2017-12-11 Thread xiaocezi
Question #660917 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/660917

xiaocezi posted a new comment:
 yes, i agreen with you about "works for running scripts in any Jython 
environment with minimum effort and clutter."
 i sure again that i had set 
CLASSPATH=C:\jython2.7.0\jython.jar;D:\Sikuli\sikulixapi.jar;
and this setting is good working in pycharm,it's strange not work in eclipse 
with jython.

in my computer's environment variable,BUT it still show in console:
--
Hello World!Jython
1
Traceback (most recent call last):
  File "D:\eclipse-workspace\Jythonagain\sikuli.py", line 9, in 
from sikuli import *
  File "D:\eclipse-workspace\Jythonagain\sikuli.py", line 16, in 
any = Screen(0)
NameError: name 'Screen' is not defined
--
thanks and sorry for have you time with this little question.

-- 
You received this question notification because your team Sikuli Drivers
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 #660917]: how to run a sikuli script in jython.exe or jython IDE

2017-12-11 Thread xiaocezi
Question #660917 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/660917

xiaocezi posted a new comment:
in comment 6,i tried successfully ,is in pycharm。

-- 
You received this question notification because your team Sikuli Drivers
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 #660917]: how to run a sikuli script in jython.exe or jython IDE

2017-12-11 Thread xiaocezi
Question #660917 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/660917

xiaocezi posted a new comment:

It is puzzling that when i tried this method with jython interpreter in eclipse 
like:
import org.sikuli.script.SikulixForJython
from sikuli import *

print "Hello World!Jython"
x=1
print x

any = Screen(0)

any.click("1m.png")


the console show:
Traceback (most recent call last):
  File "D:\eclipse-workspace\HelloWorldInJython\jythonhll.py", line 5, in 

import org.sikuli.script.SikulixForJython
ImportError: No module named sikuli

-- 
You received this question notification because your team Sikuli Drivers
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 #660917]: how to run a sikuli script in jython.exe or jython IDE

2017-12-11 Thread xiaocezi
Question #660917 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/660917

xiaocezi posted a new comment:
i must to add [Add source folder] with 
"C:\\Users\\xie\\AppData\\Roaming\\Sikulix\\Lib"  and[ Add zip/jar/egg] 
sikuliapi.jar for the project,in project->properties 
->PyDev-PYTHONPATH->External Libraries page。
and then write the script like:

from sikuli import *

print "Hello World!Jython"
x=1
print x

any = Screen(0)

any.click("1m.png")


i don't know why it doesn't work in comment 8.
maybe something is wrong?

-- 
You received this question notification because your team Sikuli Drivers
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 #660917]: how to run a sikuli script in jython.exe or jython IDE

2017-12-11 Thread xiaocezi
Question #660917 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/660917

xiaocezi posted a new comment:
sorry,haha
thank you ,RaiMan,i had tried the scripts that in comment 6,it's work now!
In fact, I did a similar attempt before I did it correctly, maybe I had set up 
a wrong place before.Now i know how to let it work currently!

-- 
You received this question notification because your team Sikuli Drivers
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 #660917]: how to run a sikuli script in jython.exe or jython IDE

2017-12-11 Thread xiaocezi
Question #660917 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/660917

Status: Answered => Solved

xiaocezi confirmed that the question is solved:
now i had achieved to run sikuli scripts in pycharm with jython interpreter.
and achieved to run sikuli scripts in eclipse with jython interpreter, or java 
application.
in pycharm with jython interpreter is easy,can like this:

import sys
sys.path.append("C:\\Users\\xie\\AppData\\Roaming\\Sikulix\\Lib")
from sikuli import *
from sikuli import Screen

print "Hello World!Jython"
x=1
print x

any = Screen(0)
any.click("1m.png")
---

the"C:\\Users\\xie\\AppData\\Roaming\\Sikulix\\Lib" directory,is a auto create 
file directory when i setup sikuli.
 

ok, my english is not so good,if has any question about it,can email
me:xiejia...@126.com

-- 
You received this question notification because your team Sikuli Drivers
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 #661431]: Could sikuli find plain text in sreen?l

2017-12-08 Thread xiaocezi
Question #661431 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/661431

Status: Answered => Solved

xiaocezi confirmed that the question is solved:
i had tried this function ,worked not good.
but still thanks for you help。
I rencently tring in translating the Sikuli manual to chinese language.Maybe 
can help other people to use sikuli more easily.
also ,when i am translating,learned much to myself.

-- 
You received this question notification because your team Sikuli Drivers
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 #661431]: Could sikuli find plain text in sreen?l

2017-12-06 Thread xiaocezi
Question #661431 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/661431

xiaocezi posted a new comment:
thank you,i'll try now.
it's pity ,china is changing quckily day by day ! also,the world is changing 
quckily too^_^
thank you again,best regards!

-- 
You received this question notification because your team Sikuli Drivers
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 #661431]: Could sikuli find plain text in sreen?l

2017-12-06 Thread xiaocezi
Question #661431 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/661431

Summary changed to:
Could sikuli  find plain text in sreen?l

-- 
You received this question notification because your team Sikuli Drivers
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 #661431]: Could sikuli find pain text in sreen?l

2017-12-06 Thread xiaocezi
Question #661431 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/661431

Summary changed to:
Could sikuli  find pain text in sreen?l

-- 
You received this question notification because your team Sikuli Drivers
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 #661431]: Could sikuli can find pain text in sreen?

2017-12-06 Thread xiaocezi
New question #661431 on Sikuli:
https://answers.launchpad.net/sikuli/+question/661431

it's me,again(#^.^#)
i have worked with sikulix1.1.1 
i write the follow script in sikuli IDE command line:

re=find("onVanish")
hover(re)

the running result is:
[error] Image: Image not valid, but TextSearch is switched off!
[error] RunTimeIDE: Wait: Abort: Jython: at Delete_Department (1)
[error] RunTimeIDE: ImageMissing: onVanish

I have read the word in sikuli help page like:
onVanish(PS, handler)
Parameters: •   PS – a Pattern object or a string (path to an image 
file or just plain text.
•   handler – the name of a handler 
function in the script

the "plain text.",it's meaning that:i could just find some text that it's not a 
image path,just text?!
if i could do this way,please tell me how to switch on this function!!
thank you!!
i am in china ,GuangZhou city, if you come to this city ,it's welcome for you 
coming!




-- 
You received this question notification because your team Sikuli Drivers
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 #660917]: how to run a sikuli script in jython.exe or jython IDE

2017-12-06 Thread xiaocezi
Question #660917 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/660917

xiaocezi posted a new comment:
thank you very very much,Raiman!
You are a good man!
it is suprise for me!
I'll try this way in the link,and reply weather i work with it.

-- 
You received this question notification because your team Sikuli Drivers
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 #660917]: how to run a sikuli script in jython.exe or jython IDE

2017-11-20 Thread xiaocezi
Question #660917 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/660917

xiaocezi posted a new comment:
I've achieved to run SikuliX from Command Line in pycharm with relative 
path,like :
--
import os
os.system("runsikulix.cmd -r MonkeyTest-WindowsSystem")
--
my os is window 7.0.
and i want to know how could i run sikuli code ,like:
--
click(“x.png”)
--
in pycharm with python script,but a sikuli script。 

i am still study in this continue.

-- 
You received this question notification because your team Sikuli Drivers
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 #406695]: Regarding Jython integration with sikuli

2017-11-20 Thread xiaocezi
Question #406695 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/406695

xiaocezi posted a new comment:
hi,chaitu:

could you tell me about,how you resolved this problem?
i am stuck in this problem too.
thank you !

-- 
You received this question notification because your team Sikuli Drivers
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 #660917]: how to run a sikuli script in jython.exe or jython IDE

2017-11-20 Thread xiaocezi
Question #660917 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/660917

xiaocezi posted a new comment:
i have readed the answer about"How we import sikuli.Sikuli.* module in python"
the page is https://answers.launchpad.net/sikuli/+question/136170
i add path in os environment like:
set JYTHONPATH=c:\Program Files\Sikuli\sikulix.jar\Lib
set CLASSPATH=c:\Program Files\Sikuli\sikulix.jar
set SIKULI="C:\Program Files\Sikuli\sikulix.jar"

but,the sikuli script in jython still not work.

-- 
You received this question notification because your team Sikuli Drivers
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 #660917]: how to run a sikuli script in jython.exe or jython IDE

2017-11-20 Thread xiaocezi
Question #660917 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/660917

Description changed to:
Hi,

  i have a question about "how to run sikuli script in jython.exe or jython 
IDE"
i'm not sure it's whether can be achieved,if could achieve in this way ,please 
let me know how ?
i have worked with sikulix1.1.1 for 2 months and learned a lot.
but still  new for the sikuli and python.
thanks very much.

-- 
You received this question notification because your team Sikuli Drivers
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 #660917]: how to run a sikuli script in jython.exe or jython IDE

2017-11-20 Thread xiaocezi
New question #660917 on Sikuli:
https://answers.launchpad.net/sikuli/+question/660917

Hi,

  i have a question about "how to run sikuli script in jython.exe or jython 
IDE"
i'm not sure it's whether can be achieved,if could achieve in this way ,please 
let me know how ?
i have worked with sikulix1.1.1 for 2 months and learned a lot.
but still  new for the sikuli and python.
thank very much.

-- 
You received this question notification because your team Sikuli Drivers
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