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

Asked by wu

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:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1
Revision history for this message
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>

Revision history for this message
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

Revision history for this message
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

Revision history for this message
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

Revision history for this message
RaiMan (raimund-hocke) said :
#6

see related bug 1852090

Revision history for this message
wu (chouhua) said :
#7

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

Revision history for this message
Launchpad Janitor (janitor) said :
#8

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