sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #09572
Re: [Question #191821]: How to define an AppearEvent in java
Question #191821 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/191821
Status: Answered => Open
blackheat is still having a problem:
Thanks for your reply but I am still unclear about the usage.
in the angrybird example in sikuli blog,the python codes writes:
# Match ended
def myHandler(event):
click("1313262381063.png")
event.region.stopObserver() #stop the observation
# Match didn't end
def myHandler2(event):
click("E.png")
event.region.stopObserver() #stop the observation
# Main function
for x in range(20, 300):
# waiting the game to begin
wait(5)
#launch bird
t = find("1313265392054.png")
dragDrop(t, [t.x - 150, t.y + x])
# waiting for map destruction ;-)
wait(30)
#restart game
#onAppear("i.png", myHandler)
onAppear("1313273123506.png", myHandler)
onAppear("III.png", myHandler2)
observe(20)
how to do the same thing in java?
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.