how to use functions inside a sikuli script

Asked by Marc Summers on 2018-07-19

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:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
Marc Summers
Solved:
2018-07-19
Last query:
2018-07-19
Last reply:
2018-07-19
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.