Commit 54770ce5 authored by Gaurav Arora (gaa721)'s avatar Gaurav Arora (gaa721)
Browse files

Writing to sketch folder

parent be402baa
Date Mon Sep 07 15:31:23 GMT-06:00 2015 Timestamp: 22613 Partipation ID: 12 Type: 0 Trial number: 0:1 Correct Answer: Bob Answer Given: adf Equal Percentage: 0.0 Comment: Incorrect
......@@ -20,7 +20,7 @@ public void textfield1_change1(GTextField source, GEvent event) { //_CODE_:textf
{
print(source.getText());
participationID = source.getText();
folderName = "c:/Users/" + user + "/Desktop/chatStudyData/"+day()+"-"+month()+"-"+year()+"-"+ hour()+"-"+minute() +"-"+second()+ "-" +millis() +"-"+ participationID;
folderName = sketchPath("")+"/chatStudyData/"+day()+"-"+month()+"-"+year()+"-"+ hour()+"-"+minute() +"-"+second()+ "-" +millis() +"-"+ participationID;
File file = new File(folderName);
file.mkdirs();
try
......@@ -100,7 +100,7 @@ public void button1_click1(GButton source, GEvent event) { //_CODE_:button1:6535
if(tempFiler>=5)
{
background(255);
text("Thanks");
text("Thanks",50,50);
source.setVisible(false);
noLoop();
......
......@@ -20,7 +20,7 @@ public void textfield1_change1(GTextField source, GEvent event) { //_CODE_:textf
{
print(source.getText());
participationID = source.getText();
folderName = "c:/Users/" + user + "/Desktop/chatStudyData/"+day()+"-"+month()+"-"+year()+"-"+ hour()+"-"+minute() +"-"+second()+ "-" +millis() +"-"+ participationID;
folderName = sketchPath("")+"/chatStudyData/"+day()+"-"+month()+"-"+year()+"-"+ hour()+"-"+minute() +"-"+second()+ "-" +millis() +"-"+ participationID;
File file = new File(folderName);
file.mkdirs();
try
......@@ -100,7 +100,7 @@ public void button1_click1(GButton source, GEvent event) { //_CODE_:button1:6535
if(tempFiler>=10)
{
background(255);
text("Thanks");
text("Thanks",50,50);
source.setVisible(false);
noLoop();
......
......@@ -4,8 +4,4 @@ B - without Trails
1) Install OPENCV,G4P
Things left
1) logging
2) Questions
3) More ways to answer Questions
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment