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

Okay, so I am very very new to sikuli and have little to no coding experience. 
However, I have been able to automate a few things inside this game that I 
play. But one thing I would love to automate has me stumped. I will do my best 
to explain my situation here:

So while my character is standing still, there is a check box of 5 regions 
which will appear. Inside each of these 5 regions will appear a symbol of the 
letters a, w, s, or d. Heres an example of what I mean: 

|  [s] [w] [s] [d] [a]  | 

I then have to type those symbols in exactly the order that they appear in the 
boxes (from left to right). The order of the symbols is random when they are 
generated, so they change every time - but they will always be one of those 
four variables a, w, s, or d. 

So I would like to tell Sikuli to search in Region 1 (the first box). 
---If the (image) of the symbol matches the image of the a symbol, then type 
('a').
---If the (image) of the symbol matches the image of the w symbol, then type 
('w').
---If the (image) of the symbol matches s, then type ('s').
---If the (image) of the symbol matches d, then type ('d').
And then repeat this for all five regions (all five boxes).

Can someone explain a good jumping off point? Right now I am trying to do 
If-Else statements using a .similar(1) parameter, but as soon as the first 
letter fails, the script stops running.

Any help is appreciated. And I am happy to go into more detail.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to