X-Beta: TYPE command not translating graphics?

Asked by Tom Hinds

HI RaiMan,

I'm running a script in the X-Beta that was created in r930.
I'm using the TYPE command to locate and click an image on the UI (a text box) and then type in some text.
So in the X-Beta IDE the line looks like:
  type([image], "mytext")
In the .py file it looks like:
  type("imagename.png", "mytext")

When it is run in r930, Sikuli clicks in the UI properly and types the text.
[log] CLICK on (873,625)
[log] TYPE "mytext"

When it is run in X-Beta, Sikuli does not click in the UI, but instead types the name of the image file and then skips the text.
[log] TYPE "imagename.png"

One cosmetic item too.
After making a change in a script, if you click Run, a message appears "Some scripts are not saved yet!"
The "Run immediatly" button should be "Run immediately"

Hope these help.
Thanks for your work!
- Tom

Question information

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

Thanks. I will fix that.

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

Ok, fixed - available in next Beta (latest tomorrow ;-)

meanwhile use ( or wait ;-)

type([image], "mytext", 0)

Can you help with this problem?

Provide an answer of your own, or ask Tom Hinds for more information if necessary.

To post a message you must log in.