← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #239858]: "Click Target" Preview causes menubar to close.

 

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

RaiMan posted a new comment:
What version of Sikuli are you using?

the above can be more compact:

findLocation = Find("Object List")
mouseMove(Location(findLocation.getX(), findLocation.getY()))

can be:
mouseMove(find("Object List").getTopLeft())

and since click("View") seems to open a menu, so the next target is
somewhere below:

click("View")
mouseMove(getLastMatch().below().find("Object List").getTopLeft())

To restrict the search region to the area below the menu entry speeds
things up and avoids false positives, since undotted searches will
always search on the whole screen.

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