These are chat archives for RaiMan/SikuliX-2014

30th
Jan 2017
Jason Papakostas
@vith
Jan 30 2017 18:10
It seems like Env.addHotkey may be spawning additional threads that don't get stopped ALT+SHIFT+C, as sometimes when I abort, my script keeps running and clicks on the images embedded in the script source. Is there any workaround? I was going to run the script from outside the IDE but I don't have a sikuli-script.jar as described by the docs.
And on an unrelated note, it would be cool if the API supported something like an "any" operation between multiple images. So you could click(any(version1, version2)) for example. My use case is menu items that have a different appearance if the mouse is over them or not.
Jason Papakostas
@vith
Jan 30 2017 18:15
Another useful thing would be passing a map of pattern->callback pairs to something like find() that would only execute the callback for the first match it finds, for situations where you're looking for multiple things but need to react differently depending on what you find.