How to change width and location of text()?

Asked by masuo

I have not known about "Sikuli Guide" before.
I tried it for the first time.

Annotation width is fixed, so I can not read long string.
How do I change width of text()?
Annotation is above the element, so I can not see element.
How do I change location of text()?

[reference information:]
Default color is changed.
Annotation color of text() is red on SikuliX1.1.0.
Annotation color of text() is white on SikuliX1.1.1(SikuliX1.1.2).

But it is no problem.
Because it is possible to change color by using "setColor".

[example codes:]
import java.awt.Color as COLOR
from guide import *
text("1497101715573.png","File").setColor(COLOR.yellow)

[environment:]
OS:Windows10
Java:1.8.0_131
SikuliX:1.1.0 or 1.1.1 or 1.1.2

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
masuo (masuo-ohara) said :
#1

[additional question]
http://sikulix-2014.readthedocs.io/en/latest/extensions/sikuli-guide/index.html

dialog() is used in the codes.
When I use dialog() in codes, NameError occurred.( name 'dialog' is not defined )

Please tell me how to use dialog().

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

Sorry for the inconveniences. The mentioned doc only refer to the Guide implementation before SikuliX. I was not really aware of it and will remove it.

The current implementation in fact is not official and hence not documented.
The features available and possible parameters can only be evaluated from the sources.

Python level:
Lib/guide/guide.py

Java level:
org.sikuli.guide.Guide

Be aware: some features may not work or not work as expected. Nothing really tested to the end.
Hence only an area, to experiment and make suggestions/pull requests.

Revision history for this message
masuo (masuo-ohara) said :
#3

Thanks RaiMan, that solved my question.