Sikuli : Display window with results

Asked by tof

Hi,

I've been writing a script with sikuli to do some tasks.
It works quite well, and now I'd like to display some counters I'm incrementing in a window (now I'm using print() to display them in the IDE log).

I saw that when you run Unity test ( U) there is a nice transparent window with some values ( run, errors, failures).

Is it possible to do such a window with sikuli, to display values that are in my script ?

Thanks

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:
Revision history for this message
Best RaiMan (raimund-hocke) said :
#1

the easiest way is to run the script from command line and watch the prints while they are issued. This works, if the command line window can be visible without disturbing your script actions.

If this is not acceptable for you, you have to use the features of java.awt/javax.swing to produce a window, that you update from inside your script.

Revision history for this message
tof (keitofu) said :
#2

Thanks for the quick answer. I'll take a look at java.awt/javax.swing :)

Revision history for this message
tof (keitofu) said :
#3

Thanks RaiMan, that solved my question.