Did some research regarding the "r.waitForIdle();" use within the Mouse.java class and found this link, http://stackoverflow.com/questions/10766863/mouse-event-wait-freezes- when-called-from-button . Both move() and click() use it in the Mouse.java class.
-- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1549870 Title: Mouse.click() hangs and freezes Status in Sikuli: New Bug description: Environment: Windows 7 Java 1.7.0_51 64-bit SikuliX 1.1.0 released on 2015-10-06 Installed with all options (1.1 2 3) While running a Sikuli script that involves a mouse click() or doubleClick(), occasionally, the script will freeze and not make any further progress. Performing a thread dump using Jstack, the thread stack points to a Mouse.click() method that it is Blocked on. Opening up a command prompt and running the script with Administrative privileges does not help either. Out of the many Sikuli scripts that we use that have mouse clicks, only some experience this issue. Our current strategy has been to rewrite those to only use the keyboard. It seems like some scripts might become keyboard only if we cannot contain this issue. Attached is the thread dump file. Sample script: import sys from sikuli import * import org.sikuli.script.TextRecognizer as TR Settings.OcrTextRead = True Settings.OcrTextSearch = True iconName = box if (gui_tree.exists("..\\imgs\\icon.png")): for y in tree.findAll("..\\imgs\\icon.png"): a = y.right(200).text() if a == iconName: doubleClick(y) break To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1549870/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~sikuli-driver Post to : [email protected] Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp

