How to write setShowActions info to file

Asked by Eugene S

When I run test scenarios using Sikuli, I have a log file being written using standard Python logging module. I have also Sikuli setShowActions enabled:

setShowActions(True)

Is there a convenient way to write the info which appears on a screen as a result of "setShowActions" to be written to a file as well?

Thanks!
Eugene

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

When ShowActions is switched on, the mouse action point is highlighted for some time, before the mouse action is executed.

Currently, there is no "convenient" way, to integrate the output of Sikuli "logging" (the click info message in this case) with any standard logging systems.

The only chance is to add after every mouse action a suitable log message with the Location info from Env.getMouseLocation() (or with 1.0+: atMouse() )

I have on the list for version 1.1 to support standard logging.

Revision history for this message
Eugene S (shragovich) said :
#2

I understand.
Thank you for your answer RaiMan!

Revision history for this message
Eugene S (shragovich) said :
#3

Thanks RaiMan, that solved my question.