Key.RIGHT command is not executed by sikuli

Asked by KIRAN

Hi ,

Am kiran.

while working on game automation in following code from line-1 to line-7 code works but from line--8 onwards code doesn't work.

After this code executed, checked logs too, didn't found any errors.

In the following code, after line-6 game settings screen changes. Please help me with this soon

1: sleep(6)

2: type(Key.ESC)
3: sleep(2)

4: type(Key.DOWN)
5: sleep(2)

6: type(Key.ENTER)
7: sleep(2)

8. type(Key.RIGHT)
9: sleep(2)

10. type(Key.RIGHT)
11: sleep(2)

Thanks
Kiran

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
masuo (masuo-ohara) said :
#1

Now script is wait by constant sleep time.
Wait by image until image appear on screen.

while not exists(image,0):
  wait(1)
type(Key.RIGHT)

Can you help with this problem?

Provide an answer of your own, or ask KIRAN for more information if necessary.

To post a message you must log in.