← Back to team overview

sikuli-driver team mailing list archive

[Question #237161]: how to pass a variable between multiple scripts

 

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

I want to be able to pass a variable that is used in multiple scripts:

Let's say I have 5 scripts, the initial script, script1.sikuli will start to increment a variable

#script1.sikuli

i = 0
i += 1
i += 1
i += 1

the variable i now equals 3,  I now want to pass this value, 3, to the next script, script2.sikuli and add 3 additional values to it, now i should equal 6, then pass this new i = 6 to script3.sikuli, and so on and so forth, so that in script5.sikuli I will be able to use the final value of i for a popup to show how many errors were found (i increments +1 for every error found)

thanks

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