The implications of using type() vs. paste()
Hi RaiMan,
I was reading your comment to the below question, regarding type() vs. paste() usage:
https:/
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
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- RaiMan Edit question
- Solved by:
- Eugene S
- Solved:
- Last query:
- Last reply: