[1.0.1] Mac 10.7: Java dragDrop not working with game app
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SikuliX |
Confirmed
|
Low
|
RaiMan |
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.
theScreen.
theScreen.
2) Using mouse events
theScreen.
theScreen.
theScreen.
theScreen.
theScreen.
theScreen.
theScreen.
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:/
but it did not solve my problem.
A few more details:
1) Is it normal to have the following message on the FIRST time that i run my project from command line (so not on Netbeans)?
[error] ResourceLoaderB asic: check: No valid libs path available until now! asic: check: Please wait! Trying to extract libs to jar parent folder: /Users/ fabrizioborgia/ NetBeansProject s/SikuliTest/ dist/lib/
[action] ResourceLoaderB
Immediately after this, the logging of my appliocation starts. Could it be of any help? Other Sikuli functionalities are working, so I guess everyithing is ok, right?
2) Ok, this is REALLY strange, i tried using Region instead of Screen:
Region theWindow = App.focusedWind
and it's not working, AND, if i try to manually (physically) move my mouse during the 4.5 seconds follwing the mouseDown, i see no scroll in the interface. I should see it if the mouse would be really down, right?
3) Please find attached my project configuration and the project directory structure (i hope i put everything in the right place)