Find image of certain size

Asked by Willie

Hi everyone,

I'm using Sikuli to test command-line functions on a remote desktop. I am trying to determine if the last two digits of a message are correct, so I'm trying to first figure out where that line ends by finding a block of black space to the right of it. I made sure when making my image that the space was wide enough to not be caught as a space. Though, when running the script, Sikuli catches arbitrary black spaces that are much smaller than my image and thinks they're matches.

Is there any way to make sure the image you're searching for is the correct size? If not does anyone see a workaround?

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
Willie
Solved:
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

totally black images cannot be found currently (the same for totally white and even some colors).

This is a known bug.

I am rather sure, that you will not find a solution with current Sikuli.

What about piping the message to a file?

Revision history for this message
Willie (willie-owens91) said :
#2

Its actually in DOS, so that's not going to work...

Revision history for this message
Willie (willie-owens91) said :
#3

Well, I managed to fix the problem by making an image that contained the last two digits along with trailing black-space. Funny how you glance over the obvious after working too long at a problem.