[Sikuli-driver] [Question #664004]: Get a list of all applications that SikuliX currently sees

2018-02-02 Thread Ben Carson
New question #664004 on Sikuli:
https://answers.launchpad.net/sikuli/+question/664004

I have an application that is not responding to my_app.focus(). In order to 
rule out a bad name, I'd like to build a list of every application that Sikulix 
can detect at runtime. Has anyone ever tried such a thing? I've searched all 
over the documentation and cannot find any features that allows for this sort 
of querying.

Thanks,

Ben

-- 
You received this question notification because your team Sikuli Drivers
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


Re: [Sikuli-driver] [Question #663991]: get count of similar images

2018-02-02 Thread Maniraj
Question #663991 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/663991

Status: Needs information => Open

Maniraj gave more information on the question:
Hai,


public static boolean findInWholePage(WebDriver driver,String 
imageName,ExtentTest etest) throws IOException, FindFailed, InterruptedException
  {
String expectedimg = "imagepath" // path of image. 
URL file_url = new URL(expectedimg);
String uniqueID = UUID.randomUUID().toString();
String actualimage = uniqueID+imageName;
BufferedImage regionsetimage = screenCapture(driver,actualimage); // using 
selenium I am taking whole page screenshot and storing as buffered image.
Finder window = new Finder(regionsetimage);
Pattern testImage = new Pattern(file_url); 
window.find(testImage.similar((float) 0.99));  //.exact()
Match found = null;
if (window.hasNext())
{
  found = window.next();
  //System.out.println(imageName + " Image found");
  etest.log(LogStatus.PASS,"Expected: "+ expected + "Actual" + actual);
  return true;
}
else
{
  System.out.println(imageName + " Image Not found");
  etest.log(LogStatus.FAIL,"Expected: "+ expected + "Actual" + actual);
  return false;
}
  }


In this inside my region (that means whole page Screenshot taken in runtime), I 
have more than 1 similar images. In this scenario can I get count of all that 
similar images ?

... would be easier to understand if you post some snippet of code.

-- 
You received this question notification because your team Sikuli Drivers
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


Re: [Sikuli-driver] [Question #663991]: get count of similar images

2018-02-02 Thread Maniraj
Question #663991 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/663991

Status: Answered => Solved

Maniraj confirmed that the question is solved:
Thanks raiman. i will check.

-- 
You received this question notification because your team Sikuli Drivers
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


Re: [Sikuli-driver] [Question #663991]: get count of similar images

2018-02-02 Thread RaiMan
Question #663991 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/663991

Status: Open => Answered

RaiMan proposed the following answer:
supposing it is SikuliX 1.1.1 or even 1.1.2, then this should do what
you want:

window.findAll(testImage.similar((float) 0.99)); //.exact()
while (window.hasNext()) {
nextMatch = window.next();


the matches are delivered with decreasing score.

-- 
You received this question notification because your team Sikuli Drivers
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


Re: [Sikuli-driver] [Question #663991]: get count of similar images

2018-02-02 Thread RaiMan
Question #663991 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/663991

Status: Open => Needs information

RaiMan requested more information:
what you say is not consistent:
---  finding image inside region, in that region more that 1 similar images are 
there
--- i am taking screenshot and inside that screenshot comparing the image

... would be easier to understand if you post some snippet of code.

In any case use
findAll()

-- 
You received this question notification because your team Sikuli Drivers
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


[Sikuli-driver] [Question #663991]: get count of similar images

2018-02-02 Thread Maniraj
New question #663991 on Sikuli:
https://answers.launchpad.net/sikuli/+question/663991

Hi,

I am finding image inside region, in that region more that 1 similar images are 
there, there is any way to get count of all similar images inside that region.


Note: i am taking screenshot and inside that screenshot comparing the image, 
not comparing images on screen.

Help me out. 

thank you.

-- 
You received this question notification because your team Sikuli Drivers
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


Re: [Sikuli-driver] [Question #663982]: can not select image when taking screenshot in sikuli

2018-02-02 Thread RaiMan
Question #663982 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/663982

Status: Open => Answered

RaiMan proposed the following answer:
Should work.

When dark overlay comes up, move mouse to start point, press and hold
left button and drag.

Might not work with fullscreen apps.

-- 
You received this question notification because your team Sikuli Drivers
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


Re: [Sikuli-driver] [Question #663982]: can not select image when taking screenshot in sikuli

2018-02-02 Thread Elise Wang
Question #663982 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/663982

Status: Needs information => Open

Elise Wang gave more information on the question:
Hi RaiMan,

64-bit Operating System, windows 10.
Sikuli1.1.1.


On Fri, Feb 2, 2018 at 4:56 PM, RaiMan  wrote:

> Your question #663982 on Sikuli changed:
> https://answers.launchpad.net/sikuli/+question/663982
>
> Status: Open => Needs information
>
> RaiMan requested more information:
> what system?
> waht SikuliX?
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/sikuli/+question/663982
>
> You received this question notification because you asked the question.
>

-- 
You received this question notification because your team Sikuli Drivers
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


Re: [Sikuli-driver] [Question #663982]: can not select image when taking screenshot in sikuli

2018-02-02 Thread RaiMan
Question #663982 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/663982

Status: Open => Needs information

RaiMan requested more information:
what system?
waht SikuliX?

-- 
You received this question notification because your team Sikuli Drivers
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


Re: [Sikuli-driver] [Question #169864]: Maximize the browser window?

2018-02-02 Thread RaiMan
Question #169864 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/169864

RaiMan posted a new comment:
@Rajagopal
Before guessing around, you should read the docs and understand what you are 
doing.

FindFailed means that an image was not found with SikuliX find op.

Do not ask questions in comments to already solved question. No one else 
besides me will see it.
Post your own questions.

-- 
You received this question notification because your team Sikuli Drivers
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


Re: [Sikuli-driver] [Question #663114]: [1.1.2 0ffline setup]when I save script I get error message.

2018-02-02 Thread Launchpad Janitor
Question #663114 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/663114

Status: Open => Expired

Launchpad Janitor expired the question:
This question was expired because it remained in the 'Open' state
without activity for the last 15 days.

-- 
You received this question notification because your team Sikuli Drivers
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