← Back to team overview

sikuli-driver team mailing list archive

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

 

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

Hi All,

Just started using Sikuli today and I am running into a problem on a QT application when using the "View" menu bar. The view menu bar has a bunch of items such as "Object List". When I tell Sikuli

Click("View")
Click("Object List")

Sikuli displays the preview reticle of where it wants to click. When it does this, the QT Application goes out of focus. This is fine for the View button, but when I reach the step when I need to click "Object List", the preview animation closes the menu bar and Sikuli tries to click on empty space.

I tried finding the manual location of "Object List" and telling Sikuli

Click("View")
findLocation = Find("Object List")
mouseMove(Location(findLocation.getX(), findLocation.getY()))
mouseDown(Button.LEFT)


However Sikuli still insists on showing me the preview of the place I am clicking, bring the menu out of focus and closing it. Is there a way to hide this preview? Since Find can find "Object List" without having to use the Preview, it is clearly an unimportant function, simply there for user analysis. Unfortunately this convenient function breaks my automation.

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