← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #701165]: Detect image, click result when target application is minimize

 

Question #701165 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/701165

    Status: Open => Answered

RaiMan proposed the following answer:
to find an image in another image:

setBundlePath("/..../somewhere/");

base = "base.png"
test = "test.png";
finder = Finder(base);
finder.find(test);

if finder.hasNext():
    match = finder.next()
    print "found:", match
}

See also in the docs "Finder"

The match's (x.y) is relative to the base images's top left corner
(0,0).

Currently as you might know, SikuliX can only handle, what is visible on the screen.
Hence a minimised app-window is not accessible.

In SikuliX we already use some win32 API features via JNA.
So if there are any features available, we can further discuss it.

So any further infos are welcome.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.