MarappPrashanth / sikuli-api

Automatically exported from code.google.com/p/sikuli-api
0 stars 0 forks source link

Sikuli-java can't detect if the image was covered #73

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. When I have a object on an app was covered by another app.
2. I have the following code:
    ScreenRegion sr;
    if ( sr.find(new ImageTarget(new File("./img/someimage.png")).equals(true)) {
          mouse.doubleClick( someIconImage.png );
     }
3. Even the someimage.png was covered( was not on the frontmost app), but seems 
the if statement
   is still true, then mouse try to click, but it can't click on the image because it was covered.
   but howcome the if statement is finding it is true??

I am writing this code to test if the image was on the topmost of applications.

What is the expected output? What do you see instead?
I expect the if failed. 
I have seen the if was true.

What version of the product are you using? On what operating system?
I am using 1.0.2 sikuli-script.jar file for java code. on Window 7.

Please provide any additional information below.

Original issue reported on code.google.com by kurtxc...@gmail.com on 16 Sep 2013 at 5:18