← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #200266]: Can Sikuli scripr run on different machine

 

Question #200266 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/200266

    Status: Open => Answered

RaiMan proposed the following answer:
-- 1. resolution ...
... does not matter as long as the per pixel information is the same on different systems.
width and height in pixels must be the same, pixel color might slightly vary (influences similarity)

-- 2. image matching
Currently this is always done by getting a fresh screen capture (which might be restricted to a smaller region by the user at his own resposibility) and then searching the visual object inside this captured image.
Currently a Match object does not remember its image, only its position/dimension and similarity.

-- 3. window under test is moved 
If the script does not restrict the search region using absolute coordinates (the window has always to be on the same position with the same dimension), this is no problem.
To be flexible, one should use the App class, to get the application window dynamically and use this as restricted search region.

You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.