← Back to team overview

sikuli-driver team mailing list archive

[Question #235186]: The implications of using type() vs. paste()

 

New question #235186 on Sikuli:
https://answers.launchpad.net/sikuli/+question/235186

Hi RaiMan,

I was reading your comment to the below question, regarding type() vs. paste() usage:
https://answers.launchpad.net/sikuli/+question/138750

I have also found the below "Best Practice" in Sikuli documentation(in Region section):
Best Practice: As a general guideline, the best choice is to use paste() for readable text and type() for action keys like TAB, ENTER, ESC, .... Use one type() for each key or key combination and be aware, that in some cases a short wait() after a type() might be necessary to give the target application some time to react and be prepared for the next Sikuli action.


So I just wanted to know what could be the implications of using type() instead of paste()? I use strings like below for a while now and never had any problems with it.

type("\t" + dob + "\t" + "2 Hay Street" + "\t" + "\t" + "Sydney" + "\t")


I guess that I can't use such input line using paste()?
It is also mentioned that concatenating should not be done as well. Is that correct in such case? What could go wrong with such implementation? Do I have to split each command to a separate line?


Thanks!
Eugene

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