Script runs in slow motion, but fails in simple run

Asked by Balazs Varga

My script which uses "type" (example type('cos') ) runs perfectly in slow motion, but if I choose just "Run", not all of the characters are interpreted. Maybe it's because the software I test do some processing after every character input (and it's in a virtual machine, windows 7), and it's slow. My question is how can I slow down the typing not to miss characters? Anyway, what's the difference (in parameters) between "Run" and "Run in slow motion". I couldn't find anything about this in the docs. thanks.

Question information

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

In slow motion, you have the pause of the blinking circles (time can be adjusted).

In normal mode, the next Sikuli feature (e.g. your type()) is instantly processed after the preceding feature (e.g. a click()).

You should start with a short wait() before and/or after the type(). It might be, that the preceding click() is not yet interpreted by the GUI or the next click() or type() comes too fast.

e.g.:
click("somewhere.png")
wait(0.5)
type("some stuff")
wait(0.5)

you have to check your situation.

Revision history for this message
Balazs Varga (bb-varga) said :
#2

No, In my case It wasn't the situation, I had also some kind of wait before type(). It turned out that the problem was in the software I tested.Initialy I thought that the type() works differently (types slower) in "Run in slow motion" mode, but I think not this is the case.

thank you for your answer.
b.