← Back to team overview

sikuli-driver team mailing list archive

[Question #166147]: Create functions and call them whenever needed

 

New question #166147 on Sikuli:
https://answers.launchpad.net/sikuli/+question/166147

I want to create functions and reuse them whenever needed, and i also want nested functions.

e.g

myFunction():
	click here
	click there
	if any error call myError()

myError()
	popup("error occured")
	exit()

/// main program

click this
call myFunction()

if error call myError()
    

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.