How to write parameterized function in sikuli and use it piblically

Asked by Harry

Hi Raiman
Please tell me how to write parametrized function and use it publically
And how to use that function in login script

As i have to check login functionality and currently i am using static data

Question information

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

it is all Python.

Many tutorials in the net.

Revision history for this message
Harry (iam-harishetty) said :
#2

can you show me sample test code.

Revision history for this message
RaiMan (raimund-hocke) said :
#3

def function(p1, p2, p3):
    if p1 == p2:
        return p3
    else:
       return p2

x = function(1,2,3)

Can you help with this problem?

Provide an answer of your own, or ask Harry for more information if necessary.

To post a message you must log in.