Call external value into Storyline; export score to same text file

Need to call several external variables from a text file, then insert into a Storyline certificate, then export the final score to the same file.

Anyone do this before?   I'm happy to help write up the instructions, but I'm not sure how to do this.  I tried the tutorial here ( ), but I could not get this script (http://community.articulate.com/forums/p/12306/73694.aspx#73694) to work:

var fso = new ActiveXObject("Scripting.FileSystemObject");
 var s = fso.OpenTextFile("C:\Users\First_Last\Documents\TIPS\Test.txt", 8, true, 0);
 var player = GetPlayer();
 var name = player.GetVar("TextEntry");
 var email = player.GetVar("TextEntry1");
 s.WriteLine("Email: " + email);
 s.WriteLine("Name: " + name);
 s.WriteLine("==========");
 s.Close();

2 Replies
Kawstov FLIP

Hi Aunt Bee,

I have worked on these area. There are 2 different steps:

1. Push Data from SL to external txt file.

Possible - 

http://community.articulate.com/forums/p/34669/284493.aspx#284493

and 

http://blog.kawstov.com/passing-values-from-storyline-to-php-via-javascript/

2. Push data from external file to SL 

Possible - 

But right now due to my limited knowledge of coding, from HTML to SL only.

http://blog.kawstov.com/passing-values-from-html-to-storyline/

If we can get some PHP/ Javascript code to read the data from file to HTML, our work may be done.

But due to work load not able to search that.

Regards,

Kawstov

B J

Thanks, Kawstov.  I'm working on a few possible solutions. I'll take a look. 

Whatever I end up with, I'll post the code and a sample here.  I see that I'm not the only person looking for an answer to this requirement.

I found other good links as well, including:

http://community.articulate.com/forums/p/15447/137556.aspx

http://archives.articulate.com/forums/articulate-quizmaker/4317-quiz-database-instructions-code.html

http://community.articulate.com/forums/t/48037.aspx