setShowActions or Settings configuration not taking effect

Asked by Tak Eda

Hello,

It does not seem like the logging in the following script works besides clicking on the image successfully:

[code]
setShowActions(True)
Settings.setShowActions(True)
Settings.ActionLogs = True
Settings.InfoLogs = True
Settings.DebugLogs = True
Settings.SlowMotionDelay = 3

click("test_image.png")
[/code]

My expectation, in addition to Sikuli clicking on the image successfully, was to:

1. See the mouse moving
2. Action, Debug and Info output logged
3. Red crosshair show up on the click event

Details:

1.1.0 2015-07-24_01:00nightly

WINDOWS 7

java version "1.8.0_51"
Java(TM) SE Runtime Environment (build 1.8.0_51-b16)
Java HotSpot(TM) 64-Bit Server VM (build 25.51-b03, mixed mode)

Any idea what's going on? Are you able to reproduce this issue on your side?

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Eugene S (shragovich) said :
#1

Hi,

1. You will always see the mouse moving on the screen unless you set Settings.MoveMouseDelay to 0. This will switch off any animation.

2. AFAIK, these logging settings are only relevant for IDE, if you run your script from command line it won't make any differences.

3. Red crosshair will appear if you set setShowActions(True). Settings.SlowMotionDelay parameter that you have mentioned, will just control the duration of the visual effect. In this case, if you set it to 30, and attempt to click on an element, the crosshair will stay on the screen for 30 seconds.

Revision history for this message
Tak Eda (takeda) said :
#2

Eugene,

Thanks for your reply.

My questions were specific to "1.1.0 2015-07-24_01:00nightly" IDE.

Did you try running the code I posted in "1.1.0 2015-07-24_01:00nightly" IDE?

Do you see #1, #2 and #3 as expected?

I am aware of each of the situations you posted and know they work in v1.0.1.

This report however is to ask if the same thing happens in "1.1.0 2015-07-24_01:00nightly" IDE (as it does not do so in my installation of "1.1.0 2015-07-24_01:00nightly" IDE)

If you and others confirm that you see #1, #2 and #3 as expected in "1.1.0 2015-07-24_01:00nightly" IDE, than I will know it's an issue on my systems otherwise I will file a bug report.

Hope I have been able to provide clarity on my question

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

No, I was using another version for testing.

Can you help with this problem?

Provide an answer of your own, or ask Tak Eda for more information if necessary.

To post a message you must log in.