← Back to team overview

sikuli-driver team mailing list archive

[Question #268175]: Loop two different actions in Sikuli forever

 

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

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?


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