← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #208649]: Problem navigating context menues

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
Are you using text or image, to find the entry?

-- If text: currently no chance to improve it.

-- if image:

-- generally use Pattern().similar(0.99)
In some cases, 2 entries in a textual menu are too similar, so a false positve is found in the list.

-- use Pattern().targetOffset()
based on an image that is surely found.
But this is only possible if the layout of the menu can be foreseen in all these situations.

-- use Env.getMouseLocation() and calculated offsets
since you are talking about context menus, it should be principally possible, to "know" the position of the menu relative to the current mouse position. If all this is regular, you could calculate click offsets, to hit the respective menu entries.

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