Problem navigating context menues

Asked by Malte Wannerskog

Hi all!

We are experiencing problems with Sikuli navigating and clicking in context menues.
Sometimes (too often) Sikuli just fails to click items in the context menues.

Anyone else experienced problems using Sikuli with context menues?
And does anyone have any clever tips on this topic?

Thanks!

Question information

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

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.

Can you help with this problem?

Provide an answer of your own, or ask Malte Wannerskog for more information if necessary.

To post a message you must log in.