Sikuli dealing with two interfaces

Asked by Rita Maia on 2018-04-02

Hi,

How can i do a sikuli script when i'm dealing with two interfaces at the same time?
One of the interface has a button, the other one has the same button but bigger. The script is to click on the first interface button and then show the second one.

Do you have any ideia how can i do this?

Thank you and best regards,
Rita Maia

Question information

Language:
English Edit question
Status:
Answered
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Last query:
2018-04-02
Last reply:
2018-04-03
masuo (masuo-ohara) said : #1

Generally you have to prepare two images.
If you want to reduce the number of images to prepare, it is impossible.

There are commands to find more than one image in a Region at the same time.
http://sikulix-2014.readthedocs.io/en/latest/region.html?highlight=findbest#find-more-than-one-image-in-a-region-at-the-same-time
But these commands ar not match what you want to do.

Rita Maia (ritamaia07) said : #2

But how can i prepare two images?

The issue is this: have two images with the same button. But one has the button bigger. i want to do a sikuli script that creates a click event on the image that has the button with the normal side, and then appears the other image that has the bigger button.

Is that possible to hadle two pictures at the same time in sikuli? If so how can i do the script?

Rita Maia

RaiMan (raimund-hocke) said : #3

img1 = "someImage1.png"
img2 = "someImage2.png"
click(img1)
wait(img2)
click()

Can you help with this problem?

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

To post a message you must log in.