← Back to team overview

sikuli-driver team mailing list archive

[Bug 1262394] Re: Java dragDrop not working

 

Fine! and thanks for the feedback.

The Mac app Sikuli-IDE is only for convenience and users who are not used to the usage of a command line.
It does no harm, if you leave it where it is ;-) but if you want to use it, you must copy/move it to /Applications.

That your problem is solved with a Java 1.6 in Netbeans is rather astonishing: I have exactly the same stuff on my 10.7 machine, using source/target version 1.6 and as platform 1.7.
But I admit, that I might not have tested with such a critical application.
Thanks. I do not need more information for that case.

I set this bug to confirmed, to leave it visible, but out of my way ;-)

** Summary changed:

- Java dragDrop not working 
+ [1.0.1] Mac 10.7: Java dragDrop not working with game app

** Changed in: sikuli
       Status: New => Confirmed

** Changed in: sikuli
   Importance: Undecided => Low

** Changed in: sikuli
     Assignee: (unassigned) => RaiMan (raimund-hocke)

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1262394

Title:
  [1.0.1] Mac 10.7: Java dragDrop not working with game app

Status in Sikuli:
  Confirmed

Bug description:
  Sikuli version: 1.0.1 (released 2013-08-12)
  Operative System: Mac OS X 10.7.5 (64bit)

  Hi, i have developed an automatic farming tool for a game named
  "Battle Nations". I have been using the Sikuli IDE, but recently, i
  have switched to Java, because I am a Java developer, and I wanted to
  add more complexity to my project.

  The problem is that the dragDrop function is not working, within the BattleNations window and MORE IMPORTANTLY within any Finder window.
  I tried two different approaches to achieve the drag n'drop:

  1) Using dragDrop (the click is used to ensure the focus on the
  window).

       Screen theScreen = new Screen();
       theScreen.wait(3.5);
       theScreen.click(theScreen.getCenter());
       theScreen.dragDrop(theScreen.getCenter(), theScreen.getCenter().offset(0, -100));

  2) Using mouse events

       theScreen.wait(3.5);
       theScreen.click(theScreen.getCenter());
       theScreen.mouseDown(Button.LEFT);
       theScreen.wait(0.5);
       theScreen.hover(theScreen.getCenter().offset(0, -100));
       theScreen.wait(0.5);
       theScreen.mouseUp(Button.LEFT);

  Both approaches work on any window (browsers, NetBeans itself) without
  any problem. But when it comes to my BattleNations window, or the a
  Finder window, the drag is not performed: the mose moves correctly
  from a location to the other. But nothing changes in the user
  interface (as if the mouse is not pressed anymore).

  The funny thing is that the dragDrop works perfectly using the Sikuli IDE, even with BattleNations!
  Can someone help?

  I also read the bug report at 
  https://bugs.launchpad.net/sikuli/+bug/886632
  but it did not solve my problem.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1262394/+subscriptions


References