← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #205306]: How to use Java code and Sikuli to click menu items

 

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

    Status: Answered => Open

Ona_17 is still having a problem:
Oh. Actually we already do that. (Yet another detail I forgot to add --
apologies)

The click method that I used in the above code is declared in the parent class.
Here are a few more pieces of the parent class:


import org.sikuli.script.App;
import org.sikuli.script.FindFailed;
import org.sikuli.script.Screen;


   private void setupApp()
   {
      imagePathSetter.setImagePath();
      app.focus();
   }


   protected void click(final String imageName)
   {
      setupApp();
      try
      {
         screen.click(imageName);
      }
      catch (final FindFailed e)
      {
         throw new ControllerException(e);
      }
   }


Everything else that we have done this way with Sikuli and Java has worked. This is the only method we are having problems with (it's the only one where I need to click a menu item)

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