How to execute the Sikuli java code on different resolution monitors.

Asked by Anupam Das on 2018-10-19

We have the below code which we want to run over the different size monitors. Is there any scope of performing such activity where we wont have the difficulty in identifying the image over different screens.

s.dragDrop( System.getProperty("user.dir") + File.separator + "Images" + File.separator +
      DeviceSourceLoc,System.getProperty("user.dir") + File.separator + "Images" + File.separator + DeviceDropLoc);

This java code performs the drags and drop functionality.

While we want to run the program in 15 inch Laptop screen, it works very nice. However we are not able to execute the same while running in 21 inch screen.

Please help.

Question information

Language:
English Edit question
Status:
Answered
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Last query:
2018-10-19
Last reply:
2018-10-19
RaiMan (raimund-hocke) said : #1

read and understand:
https://sikulix-2014.readthedocs.io/en/latest/basicinfo.html#sikulix-how-does-it-find-images-on-the-screen

You might need 2 different image sets.

BTW: have a look at the ImagePath feature

Can you help with this problem?

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

To post a message you must log in.