onAppear / onVanish not working
Asked by
_elgato
Hello, I've been using Sikuli for a couple of days (I'm not a python programmer) but I cannot make onAppear or onVanish to work.
I've read there is a problem with observe(background = True) on Windows 7 32-bit wich I am currently using.
This is the script:
def feed(onAppear):
pass
click(
wait(1)
hover(
wait(2)
click(
return
onVanish(
observe(background= True)
while (1):
doubleClick(
wait(2)
type ("r",KEY_ALT)
wait(30)
The script performs the while bucle perfectly, however observe won't trigger. onVanish searchs for a image of a decreasing bar. I've tested it and Sikuli finds correctly when the bar has vanished, oddly enough feed function won't work.
Thanks
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- RaiMan
- Solved:
- Last query:
- Last reply:
To post a message you must log in.