Monday 5 March 2012

Sikuli is Python - Creating a Function.

All semantics for Jython (python for java) apply to Sikuli. Change the Hello World popup to run as a "private" function.


# Comment: This is the function
def helloWorld():
    popup( "World", "Hello")

# This is a call to the function
helloWorld()


The result is the same as in the previous example.



Further Reading:
Python Function Tutorial


03-05-2012
Sikuli X-1.0rc3 (r905)

No comments:

Post a Comment