how to use functions inside a sikuli script

Asked by Marc Summers

I have been programming in C for a very long time.
As you well know, in C all of the functions are declared up front, or
can be, there are other ways also, ie prototypes....

Then in main, I can call those functions as many times as I want to.
Is there a way to do this same thing in a sikuli script ?

int functionOne()
{
  <some code>
}

int functionTwo()
{
  <some code>
}

int functionThree()
{
  <some code>
}

int main(int argc, char *argv[])
{

  functionOne();

 functionTwo();

 functionThree();

 functionTwo();

 functionOne();

} /* End main */

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
Marc Summers
Solved:
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1
Revision history for this message
Marc Summers (2aircraft) said :
#2

Hello RaiMan:

Once again, I thank you for your responsiveness.
I much appreciate your help.
I am working on my Python 2.7 skills, it takes time. :)

Thanks for your help.