sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #38445
Re: [Question #294807]: Trouble figuring out onAppear
Question #294807 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/294807
Karl proposed the following answer:
Python doesn't use use the += syntax. What language are you using?
onAppear uses a handler with an associated event that observe() throws
to start that handler.
def myHandler(event):
print "myImage just appeared"
onAppear("myimage.png", myHandler) #Note: this isn't a function call is where the function is
observe(60, background=True) #Deprecated background, use observeInBackground
http://sikulix-2014.readthedocs.io/en/latest/region.html?highlight=observe#Region.observeInBackground
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.