← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #196389]: Delay in execution time for each line

 

Question #196389 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/196389

    Status: Open => Answered

RaiMan proposed the following answer:
There is currently no other way, than to mix wait()'s in the workflow.

--- version 1
type(some_text); wait(1)
type(more_text); wait(3)
type(Key.ENTER); wait(1)

so you at least have the wait() on the same line.

--- version 2 (basic solution
def mytype(text, t = 0):
    type(text) 
    wait(t)

usage:
mytype(some_text, 1)
mytype(more_text, 3)
mytype(Key.ENTER, 1)

so you can use my type() for this special case and type(); wait() for
all other cases (need modifier keys or integrated find).

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.