Question #167353 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/167353
RaiMan posted a new comment: You are right: what is missing is some tutorial, that leads a new bee into the magics of Sikuli scripting step by step. Nevertheless, asking on this board is the second best, since you normally get helpful answers ;-) To feed your curiosity, why your onAppear() solution worked without complaining: 1- since the syntactical rules where followed, the script worked 2- onAppear() does not do any action, it only registers an event that has to be observed later on for the specified region 3- since you used two different regions with onAppear() and observe(), the appear event was never observed and the observe had nothing to do, since no event was registered for this region. 4- the click(img) (2nd parameter of onAppear()) was evaluated at runtime, and did a click, if the image was there (target might not be clickable, so at least the mouse should have moved) or interrupted the script (FindFailed) if not The last point is one thing, that one can complain against Sikuli: onAppend() and the other onXXX() should check, wether the second parameter is a valid handler reference and stop the script with an explaining error if not. So come back whenever you need it: There are no stupid questions - only stupid answers ;-9 -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. _______________________________________________ Mailing list: https://launchpad.net/~sikuli-driver Post to : [email protected] Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp

