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

    Status: Open => Answered

RaiMan proposed the following answer:
currently the easiest way is to use Sikuli-IDE to manage one or more
imagexxx.sikuli containing the following:

imgXyz = "xyz.png"
ptnAbc = Pattern("abc.png").similar(0.95).targetOffset(10,20)
.....

Have these xxx.sikuli in your project top level folder (the projects
working folder)

In your PyDev project you just say:
from sikuli import *
from imagesXXX import *
if exists(imgXyz):
    click(ptnAbc)

So in parallel with your Eclipse you use the IDE features to manage your 
images, save the .sikuli if something was changed and debug your script in 
Eclipse.
You might decide to only have one of these images.sikuli in a central place and 
use the Eclipse path settings (global and/or project wise), to allow the access 
to images.sikuli at runtime and for the Eclipse PyDev editor at development 
(syntax check, autocomplete, ...).

To better support this with a Sikuli process waiting in the background
for some triggers and come up with the requested features is on the list
for version 1.1 (a prereq is the complete revision of the pattern
preview feature to even allow to use it in a script like already the
capture feature).

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

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to