Forum Discussion
RobinLeach
13 years agoCommunity Member
Importing and retaining variables
Is there a way to import variables from external files. I want to design a review game that instructors can input thier questions into a Storyline presentation from a text file. I want to setup a ...
MarkBaranowski
13 years agoCommunity Member
I got this script off this blog: http://www.articulate.com/support/kb_article.php?product=st1&id=llwes8cn32vg
Save Storyline variables to a text file
var fso = new ActiveXObject("Scripting.FileSystemObject");
var s = fso.OpenTextFile("C:\\Test.txt", 8, true, 0);
var name = player.GetVar("TextEntry");
var email = player.GetVar("TextEntry1");
s.WriteLine("Email: " + email);
s.WriteLine("Name: " + name);
s.WriteLine("==========");
s.Close();