Issue with wait() and type()
We are trying out some python code using sikuli. We have a target, a notepad and we are trying to enter something in notepad with the below code.
while(true)
wait(1)
type(key.DOWN)
wait(1)
type("type this string")
wait(1)
type(key.ENTER)
So basically we need to press DOWN ARROW then type some string and then press ENTER and repeat. We have sikuli logs enabled.
Problem Part- While running, the key down, ENTER and typing strings are all logged in sikuli logs but the operation is not performed in notepad.
Without wait() or less wait time, say wait(0.5), its working as expected. It seems there is a problem while using wait() and type() together.
Anyone else face the same problem? Can anyone suggest a workaround?
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask sharon for more information if necessary.