how to pass a variable between multiple scripts
Asked by
Benjamin Bruffey
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
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Benjamin Bruffey for more information if necessary.
To post a message you must log in.