how to show my print in cmd's log with sikuli

Asked by wu on 2019-11-07

now i use cmd to open sikuli-2.0.0 use 【java -jar sikuli-2.0.0.jar 】
and i want to show my print(something) in the cmd when i run the case
my code:

sp = Region(3555,503,179,98)
tr = TextOCR.start()
def change(event):
    print(sp.text())

sp.onChange(500,change)
sp.observe(10)

i want to show the print(something) in cmd when i run the code
i don't know key what when open the sikulix

Question information

Language:
English Edit question
Status:
Expired
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Last query:
2019-11-13
Last reply:
2019-11-28
wu (chouhua) said : #2

i use the -d or -c、 -u all are not work just like jump.
like i use cmd

C:\Users\Andy> java -jar sikuilx.jar -d --> it will not work and jump and new path like
C:\Users\Andy>

RaiMan (raimund-hocke) said : #3

not sure, what you are doing.

java -jar <path-to>\sikulix-2.0.0.jar -c

works as expected:
print "something"

and
something
appears in the command line window

wu (chouhua) said : #4

when i open sikuilix i use cmd and input

C:\Users\Andy> this is my sikuilx put jar the path

C:\Users\Andy> java -jar sikulix-2.0.0.jar -c -> so this is will open the sikuil that is work good but the cmd will return another line

C:\Users\Andy> ->when the sikuil work good

then i run my code print something

cmd also appears-> C:\Users\Andy>

and not print something

Filip Hasa (hasafi) said : #5

print command is not working in IDE of SikuliX 2.0.0 as well
it works in 1.1.4 - same script

RaiMan (raimund-hocke) said : #6

see related bug 1852090

wu (chouhua) said : #7

yes this case is good work in 1.1.4 so 2.0.0 will not fix it?

Launchpad Janitor (janitor) said : #8

This question was expired because it remained in the 'Open' state without activity for the last 15 days.