@Brian Thanks for the reminder ;-) Always wanted to implement something, that avoids this (ugly) coding.
>From tomorrow's build 1.1.0 on this will do what you have done: (no need to import anything) r = selectRegion() img = r.saveCapture(getBundlePath()) # the initial capture while True: while r.exists(Pattern(img).similar(0.99), 0): wait(1) if Mouse.at().x < 10: exit() wait(1) img = r.saveCapture(getBundlePath()) # the follow-up capture after a change I added a termination solution: if you move the mouse to the screen's left edge, the script will terminate. absolute-path-of-imagefile = r.saveCapture( [path [ , name ] ] ) will save timestamped .png files as: nothing given: <temp>/Sikulix/sikuliximage-1427279736087.png path given: <path>/sikuliximage-1427279736087.png path and name given: <path>/<name>-1427279736087.png and return the absolute path of the created .png or "" if failed for some reason. -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1434434 Title: [request] want a workflow recording tool with support for runtime adjustments to the workflow Status in Sikuli: In Progress Bug description: Hi guys! @RaiMan, could you kindly advise me if you have done a script recording tool? If you haven't, would you be interested in my one? It some kind of floating panel with two buttons Record and Stop, that can capture pictures and write your typing. Output is simply set of commands, for example: s.click("c:\\tmp\\myimgs\\PREF_20150320130001.PNG"); s.type("H"); s.type("e"); s.type("l"); s.type("l"); s.type("o"); s.type(" "); s.type("g"); s.type("u"); s.type("y"); s.type("s"); s.type("!"); s.type(Key.ENTER); You can copy them and past to your code. Probably, I or someone else could develop a plugin for eclipse in the future that will input the commands directly to your code. By now, it will be an AWT application. The main advantage of the tool is to reduce necessity to make pictures manually and link them to the commands, the tool does it for you. I could also make an youtube video. So, let me know if you need so. Thanks! To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1434434/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp