one sikuli file calls the other sikuli file

Asked by Loren Lai

Hi all,

I'm totally newbie and have a question, please.

I have 2 file called "myLogin.sikuli" and "checkNumber.sikuli" (both files are located in the same directory)

Now, I would like to have this scenario:

#file checkNumber.sikuli

at the beginning I would like to call/execute the login process (myLogin.sikuli) .
let's say I would like to "re-use" the login process.
It means, the login process should be running/executing here ...
Then continue the the code lines below ....

Question: How can I do that? :-)

Thank you very much. ;-)

Cheers

Loren

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
obiwan-92 (obiwan-92) said :
#1

Hello,

Late answer.

Put your process login in a function like this :
def function(login, pwd):
    print login
    print pwd
    # Some actions...

You can call it like this :
function("Toto", "the_toto_password")

Regards.

Can you help with this problem?

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

To post a message you must log in.