Loop two different actions in Sikuli forever
Asked by
Hashtag123
I have a task in Sikuli and I just can't figure out how to accomplish it.
I want to start a script and with it the LEFT Arrow key should be pressed repeatedly. As soon as a certain image (Pic_1) appears the RIGHT Arrow key should be pressed repeatedly. As soon a a different Image (Pic_2) appears the LEFT Arrow key should be pressed again and the whole loop schould start again.
So basically I just have 2 different Images and 2 different actions. But I just can't figure out how to loop them. An I don't know how a Key can be pressed repeatedly with Sikuli. If possible can I set a certain speed? If not I have to press the LEFT Arrow key as long as Pic_1 "does not exists".
Can anyone help me?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Hashtag123
- Solved:
- Last query:
- Last reply:
To post a message you must log in.