Cannot share scripts from my computer to my co-worker's computer

Asked by Nicholas Gaudet on 2017-07-10

I created a script that works perfectly fine on my computer. We wanted to do testing on multiple computers, so we exported my script and downloaded it on another computer to test it out. The location and image detection do not work at all.
a) the pictures are completely ignore and aren't getting recognized even though we're using the very same laptops with the very same resolution and display settings.
b)the location on mine works fine, but on my co-workers, when I transfer my script, his area of searching shrinks and thus the location does not work.
Is there a special setting I have to enable? I have tried everything and looked online for HOURS with absolutely no results and so progress.

Question information

Language:
English Edit question
Status:
Open
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Last query:
2017-07-11
Last reply:
2017-07-11
RaiMan (raimund-hocke) said : #1

to find an image in another environment, the image displayed there must have the same dimensions in pixels as the image captured before on the other system.

If resolution and display settings are the same, then the only reason can be some different rendering caused by software (e.g. browser) which influences dimension in pixels and image content (mostly towards/around) the edges.

images with much background, that differs on the other system can be the cause too. (background pixel count should be below 20% compared to the pixel count of the whole image)

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

Nicholas Gaudet (ordealofnick) said : #2

We made sure everything is the same, our computers are completely identical as far as we know, what seems to be the issues is the region that Sikli is looking for is MUCH smaller on my coworker's computer. When I click the "Take Screenshot" area on the app, everything works fine for me, but when my coworker does it on his, the screen "shrinks", reducing the search area on his laptop.

Nicholas Gaudet (ordealofnick) said : #3

Upon further investigation, the error is that on the other computers, when their display zoom is set at 100% (Windows), their screen shrinks and the search area is completely disproportionate, which is why it can't find the photos. We tried reinstalling but nothing works.

Can you help with this problem?

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

To post a message you must log in.