<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
<link rel="self" type="application/atom+xml" href="http://theeyetribe.com/forum/feed.php?f=11&amp;t=482" />

<title>The Eye Tribe</title>
<subtitle>Developer Forum</subtitle>
<link href="http://theeyetribe.com/forum/index.php" />
<updated>2015-07-03T22:40:42+02:00</updated>

<author><name><![CDATA[The Eye Tribe]]></name></author>
<id>http://theeyetribe.com/forum/feed.php?f=11&amp;t=482</id>
<entry>
<author><name><![CDATA[chithiravelus@yahoo.com]]></name></author>
<updated>2015-07-03T22:40:42+02:00</updated>
<published>2015-07-03T22:40:42+02:00</published>
<id>http://theeyetribe.com/forum/viewtopic.php?t=482&amp;p=2115#p2115</id>
<link href="http://theeyetribe.com/forum/viewtopic.php?t=482&amp;p=2115#p2115"/>
<title type="html"><![CDATA[Re: run the example on the website]]></title>

<content type="html" xml:base="http://theeyetribe.com/forum/viewtopic.php?t=482&amp;p=2115#p2115"><![CDATA[
Dear Martin,<br /><br />I just executed and it is working fine - Thanks.<br />I need to use my page instead of existing page for scrolling. Also I need the sample for eye click event sample program. <br /><br />Could you please guide me for above.<p>Statistics: Posted by <a href="http://theeyetribe.com/forum/memberlist.php?mode=viewprofile&amp;u=7258">skatachithiravelus@yahoo.com</a> — 03 Jul 2015, 22:40</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[chithiravelus@yahoo.com]]></name></author>
<updated>2015-06-26T16:10:40+02:00</updated>
<published>2015-06-26T16:10:40+02:00</published>
<id>http://theeyetribe.com/forum/viewtopic.php?t=482&amp;p=2087#p2087</id>
<link href="http://theeyetribe.com/forum/viewtopic.php?t=482&amp;p=2087#p2087"/>
<title type="html"><![CDATA[Re: run the example on the website]]></title>

<content type="html" xml:base="http://theeyetribe.com/forum/viewtopic.php?t=482&amp;p=2087#p2087"><![CDATA[
Dear Martin,<br /><br />Thank you so much for your guidance.. I am started doing it and let you know the progress shortly..<br /><br />Hope you will guide me to make it successfully.... - CHithirai<p>Statistics: Posted by <a href="http://theeyetribe.com/forum/memberlist.php?mode=viewprofile&amp;u=7258">skatachithiravelus@yahoo.com</a> — 26 Jun 2015, 16:10</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Martin]]></name></author>
<updated>2015-05-19T02:21:32+02:00</updated>
<published>2015-05-19T02:21:32+02:00</published>
<id>http://theeyetribe.com/forum/viewtopic.php?t=482&amp;p=2037#p2037</id>
<link href="http://theeyetribe.com/forum/viewtopic.php?t=482&amp;p=2037#p2037"/>
<title type="html"><![CDATA[Re: run the example on the website]]></title>

<content type="html" xml:base="http://theeyetribe.com/forum/viewtopic.php?t=482&amp;p=2037#p2037"><![CDATA[
Chithirai,<br /><br />Check the <a href="https://github.com/eyetribe" class="postlink">our GitHub</a> open source archive. Scrolling in C# is done in <a href="https://github.com/EyeTribe/tet-csharp-samples/tree/master/Scroll" class="postlink">this sample</a>.<br /><br />Click event you will have to decide upon yourself. It's very easy to get the <a href="http://dev.theeyetribe.com/csharp/" class="postlink">X/Y screen coordinates</a> using the <a href="http://dev.theeyetribe.com/api/" class="postlink">API</a>. The <a href="https://github.com/EyeTribe/tet-csharp-client" class="postlink">C# client</a> is available with corresponding <a href="http://eyetribe.github.io/tet-csharp-client/" class="postlink">docs</a>.  Of course also API Clients for <a href="https://github.com/EyeTribe/tet-java-client" class="postlink">Java</a>, <a href="https://github.com/EyeTribe/tet-cpp-client" class="postlink">C++</a>, <a href="https://github.com/EyeTribe/tet-objectivec-client" class="postlink">ObjectiveC</a> and <a href="https://github.com/EyeTribe/tet-unity-nightmares" class="postlink">Unity</a> (C#).<br /><br /><br />Click after 1 second dwell on button? <br /><br />Have fun!<p>Statistics: Posted by <a href="http://theeyetribe.com/forum/memberlist.php?mode=viewprofile&amp;u=117">skataMartin</a> — 19 May 2015, 02:21</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[chithiravelus@yahoo.com]]></name></author>
<updated>2015-05-17T15:14:45+02:00</updated>
<published>2015-05-17T15:14:45+02:00</published>
<id>http://theeyetribe.com/forum/viewtopic.php?t=482&amp;p=2035#p2035</id>
<link href="http://theeyetribe.com/forum/viewtopic.php?t=482&amp;p=2035#p2035"/>
<title type="html"><![CDATA[Re: run the example on the website]]></title>

<content type="html" xml:base="http://theeyetribe.com/forum/viewtopic.php?t=482&amp;p=2035#p2035"><![CDATA[
Hi Friends,<br /><br />My name Chithirai, I am happy to join in The Eye Tribe Dev forum. I just purchased Eye Tribe Tracker and would like to get sample code/solution for click event and scroll event.  I need it to apply one of my demo just to click ppt.<br /><br />Thank you in advance.<br /><br />Chithirai<p>Statistics: Posted by <a href="http://theeyetribe.com/forum/memberlist.php?mode=viewprofile&amp;u=7258">skatachithiravelus@yahoo.com</a> — 17 May 2015, 15:14</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Anders]]></name></author>
<updated>2015-05-06T15:10:47+02:00</updated>
<published>2015-05-06T15:10:47+02:00</published>
<id>http://theeyetribe.com/forum/viewtopic.php?t=482&amp;p=2014#p2014</id>
<link href="http://theeyetribe.com/forum/viewtopic.php?t=482&amp;p=2014#p2014"/>
<title type="html"><![CDATA[Re: run the example on the website]]></title>

<content type="html" xml:base="http://theeyetribe.com/forum/viewtopic.php?t=482&amp;p=2014#p2014"><![CDATA[
<blockquote><div><cite>c.li-1@tudelft.nl wrote:</cite><br />One more question, what is the frequency of the sample rate? I saw the sample time in the EYETRIBE UI. Is the unit of sample time milliseconds?<br /></div></blockquote><br /><br />You should insepct the <a href="http://dev.theeyetribe.com/api/" class="postlink">TET Open API</a>, the <a href="http://eyetribe.github.io/tet-csharp-client/" class="postlink">C# SDK Documentation</a> or <a href="https://github.com/EyeTribe/tet-csharp-client/blob/master/TETCSharpClient/GazeManager.cs" class="postlink">C# SDK Source Code</a> if in doubt about a value.<p>Statistics: Posted by <a href="http://theeyetribe.com/forum/memberlist.php?mode=viewprofile&amp;u=120">skataAnders</a> — 06 May 2015, 15:10</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[c.li-1@tudelft.nl]]></name></author>
<updated>2015-05-06T13:26:02+02:00</updated>
<published>2015-05-06T13:26:02+02:00</published>
<id>http://theeyetribe.com/forum/viewtopic.php?t=482&amp;p=2013#p2013</id>
<link href="http://theeyetribe.com/forum/viewtopic.php?t=482&amp;p=2013#p2013"/>
<title type="html"><![CDATA[Re: run the example on the website]]></title>

<content type="html" xml:base="http://theeyetribe.com/forum/viewtopic.php?t=482&amp;p=2013#p2013"><![CDATA[
Thank you very much, Anders.<br /><br />One more question, what is the frequency of the sample rate? I saw the sample time in the EYETRIBE UI. Is the unit of sample time milliseconds? <br /><br />Regards,<br />Chandler<p>Statistics: Posted by <a href="http://theeyetribe.com/forum/memberlist.php?mode=viewprofile&amp;u=7960">skatac.li-1@tudelft.nl</a> — 06 May 2015, 13:26</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Anders]]></name></author>
<updated>2015-05-04T08:17:59+02:00</updated>
<published>2015-05-04T08:17:59+02:00</published>
<id>http://theeyetribe.com/forum/viewtopic.php?t=482&amp;p=2004#p2004</id>
<link href="http://theeyetribe.com/forum/viewtopic.php?t=482&amp;p=2004#p2004"/>
<title type="html"><![CDATA[Re: run the example on the website]]></title>

<content type="html" xml:base="http://theeyetribe.com/forum/viewtopic.php?t=482&amp;p=2004#p2004"><![CDATA[
Your problems seem to originate from general C# programming issues. The <a href="https://github.com/EyeTribe/tet-csharp-client" class="postlink">TET C# SDK</a> is a library project. It cannot be 'run' but is designed to be referenced by C# projects and enables developers to quickly write programs that use our technology.<br /><br />Looking at your code I strongly advise you to use the <a href="https://github.com/EyeTribe/tet-csharp-client" class="postlink">C# SDK</a> instead of writing your own network layer. If you clone the <a href="https://github.com/EyeTribe/tet-csharp-samples" class="postlink">C# samples</a> and open that solution in VS you will see how usage of the C# SDK is intended in a WPF C# project. You should inspect the code examples to learn how to use the SDK library. If you use the example code setup as a basis for the project you are doing then you will save a lot of time.<br /><br />Also, several users of this forum have shared their code. Maybe inspecting those projects could be an inspiration to you?<br /><br />Best of luck!<p>Statistics: Posted by <a href="http://theeyetribe.com/forum/memberlist.php?mode=viewprofile&amp;u=120">skataAnders</a> — 04 May 2015, 08:17</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[c.li-1@tudelft.nl]]></name></author>
<updated>2015-05-03T15:46:15+02:00</updated>
<published>2015-05-03T15:46:15+02:00</published>
<id>http://theeyetribe.com/forum/viewtopic.php?t=482&amp;p=2003#p2003</id>
<link href="http://theeyetribe.com/forum/viewtopic.php?t=482&amp;p=2003#p2003"/>
<title type="html"><![CDATA[Re: run the example on the website]]></title>

<content type="html" xml:base="http://theeyetribe.com/forum/viewtopic.php?t=482&amp;p=2003#p2003"><![CDATA[
Hi Anders,<br /><br />Thanks for your reply. Unfortunately, it doesn't help. <br /><br />I downloaded the examples several days ago. There are calibration, scroll and mouse control examples. But what I need is only the gaze data. <br /><br />I created a new project in visual studio, included the SDK in references. I copied the &quot;getting data&quot; example on the website into a main( ) program. However, I still got an error that &quot;} expected&quot; at the first &quot;{&quot; in the main() program, though I did close the main(). <br /><br />Actually, I read every topic in the forum. Most of the topics are the same question as mine. But they were always answered with a link to your examples or a simple sentence. I do believe if you could please give more details about how to get the gaze data, it will help a lot of beginners like me. Thank you very much in advance. <br /><br />Regards,<br />Chandler<br /><br />The code I copied from your website is as follows. Please let me know if there is anything wrong. <br /><br />using System;<br />using System.Linq;<br />using System.Runtime.InteropServices;<br />using System.Net;<br />using System.Net.Sockets;<br />using System.Text;<br />using System.Threading;<br />using Newtonsoft.Json;<br />using Newtonsoft.Json.Linq;<br />using System.Diagnostics;<br />using System.ComponentModel;<br />using System.IO;<br />using System.Collections;<br />using System.Collections.Generic;<br />using System.Linq;<br />using System.Net;<br />using System.Threading;<br />using System.Runtime.CompilerServices;<br />using TETCSharpClient;<br />using TETCSharpClient.Data;<br /><br /><br />namespace showgazedata<br />{<br />    class Program<br />    {<br />        static void Main()<br />        {<br />            private TcpClient socket;<br />            private Thread incomingThread;<br />            private System.Timers.Timer timerHeartbeat;<br />    <br />            public bool Connect(string host, int port)<br />            {<br />                try<br />                {<br />                    socket = new TcpClient (&quot;localhost&quot;, 6555);<br />                }<br />                catch (Exception ex)<br />                {<br />                    Console.Out.WriteLine(&quot;Error connecting: &quot; + ex.Message);<br />                    return false;<br />                }<br /><br />               // Send the obligatory connect request message<br />               string REQ_CONNECT = &quot;{\&quot;values\&quot;:{\&quot;push\&quot;:true,\&quot;version\&quot;:1},\&quot;category\&quot;:\&quot;tracker\&quot;,\&quot;request\&quot;:\&quot;set\&quot;}&quot;; <br />               Send(REQ_CONNECT);<br /><br />               // Lauch a seperate thread to parse incoming data<br />               incomingThread = new Thread(ListenerLoop);<br />               incomingThread.Start();<br /><br />               // Start a timer that sends a heartbeat every 250ms.<br />               // The minimum interval required by the server can be read out <br />               // in the response to the initial connect request.   <br /><br />               string REQ_HEATBEAT = &quot;{\&quot;category\&quot;:\&quot;heartbeat\&quot;,\&quot;request\&quot;:null}&quot;;<br />               timerHeartbeat = new System.Timers.Timer(250);<br />               timerHeartbeat.Elapsed += delegate { Send(REQ_HEATBEAT); };<br />               timerHeartbeat.Start();<br /><br />               return true;<br />            }<br /><br />            private void Send(string message)<br />            {<br />                if (socket != null &amp;&amp; socket.Connected)<br />                {<br />                    StreamWriter writer = new StreamWriter(socket.GetStream());<br />                    writer.WriteLine(message);<br />                    writer.Flush();<br />                }<br />            }<br />            public event EventHandler&lt;ReceivedDataEventArgs&gt; OnData;<br /><br />            private void ListenerLoop()<br />            {<br />                StreamReader reader = new StreamReader(socket.GetStream());<br />                bool isRunning = true;<br /><br />                while (isRunning)<br />                {<br />                    string response = string.Empty;<br /><br />                    try<br />                    {<br />                        response = reader.ReadLine();<br /> <br />                        JObject jObject = JObject.Parse(response);<br /><br />                        Packet p = new Packet();<br />                        //p.rawdata = json;<br /><br />                        p.category = (string)jObject[&quot;category&quot;];<br />                        p.request = (string)jObject[&quot;request&quot;];<br />                        p.statuscode = (string)jObject[&quot;statuscode&quot;];<br /><br />                        JToken values = jObject.GetValue(&quot;values&quot;);<br /><br />                        if (values != null)<br />                        {<br />                        /* <br />                        We can further parse the Key-Value pairs from the values here.<br />                        For example using a switch on the Category and/or Request <br />                        to create Gaze Data or CalibrationResult objects and pass these <br />                        via separate events.<br /><br />                        To get the estimated gaze coordinate (on-screen pixels):<br />                        JObject gaze = JObject.Parse(jFrame.SelectToken(&quot;avg&quot;).ToString());<br />                        double gazeX = (double) gaze.Property(&quot;x&quot;).Value;<br />                        double gazeY = (double) gaze.Property(&quot;y&quot;).Value;*/<br />                <br />                        }<br /><br />                        // Raise event with the data<br />                        if(OnData != null)<br />                        OnData(this, new ReceivedDataEventArgs(p));<br />                   }<br />                        catch (Exception ex)<br />                        {<br />                            Console.Out.WriteLine(&quot;Error while reading response: &quot; + ex.Message);<br />                        }<br />                }<br />            }<br /><br />            public class Packet<br />            {<br />                public string time = DateTime.UtcNow.Ticks.ToString();<br />                public string category = string.Empty;<br />                public string request = string.Empty;<br />                public string statuscode = string.Empty;<br />                public string values = string.Empty;<br />                public string rawData = string.Empty;<br /><br />                public Packet() { }<br />             }<br /><br />            public class ReceivedDataEventArgs : EventArgs<br />            { <br />                private Packet packet;<br /><br />                public ReceivedDataEventArgs(Packet _packet)<br />                {<br />                     this.packet = _packet;<br />                }<br /><br />                public Packet Packet<br />                {<br />                     get { return packet; }<br />                }<br />            }<br />    }<br />}<br />}<p>Statistics: Posted by <a href="http://theeyetribe.com/forum/memberlist.php?mode=viewprofile&amp;u=7960">skatac.li-1@tudelft.nl</a> — 03 May 2015, 15:46</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Anders]]></name></author>
<updated>2015-05-03T10:17:03+02:00</updated>
<published>2015-05-03T10:17:03+02:00</published>
<id>http://theeyetribe.com/forum/viewtopic.php?t=482&amp;p=2002#p2002</id>
<link href="http://theeyetribe.com/forum/viewtopic.php?t=482&amp;p=2002#p2002"/>
<title type="html"><![CDATA[Re: run the example on the website]]></title>

<content type="html" xml:base="http://theeyetribe.com/forum/viewtopic.php?t=482&amp;p=2002#p2002"><![CDATA[
Have a look at the <a href="https://github.com/EyeTribe/tet-csharp-samples" class="postlink">C# example on our GutHub account</a><p>Statistics: Posted by <a href="http://theeyetribe.com/forum/memberlist.php?mode=viewprofile&amp;u=120">skataAnders</a> — 03 May 2015, 10:17</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[c.li-1@tudelft.nl]]></name></author>
<updated>2015-05-02T18:58:27+02:00</updated>
<published>2015-05-02T18:58:27+02:00</published>
<id>http://theeyetribe.com/forum/viewtopic.php?t=482&amp;p=2001#p2001</id>
<link href="http://theeyetribe.com/forum/viewtopic.php?t=482&amp;p=2001#p2001"/>
<title type="html"><![CDATA[run the example on the website]]></title>

<content type="html" xml:base="http://theeyetribe.com/forum/viewtopic.php?t=482&amp;p=2001#p2001"><![CDATA[
Hello,<br /><br />I have problem running the example &quot;getting data&quot; on the website (<!-- m --><a class="postlink" href="http://dev.theeyetribe.com/csharp/">http://dev.theeyetribe.com/csharp/</a><!-- m -->).<br /><br />I add the example into the C# SDK in visual studio. The original property of the SDK is class library, and I got the error of &quot;A project with an output type of class library cannot be started directly&quot;. if I change the property to console application, then I got the error of &quot;does not contain a static 'Main' method suitable for an entry point&quot;. <br /><br />Can anybody help me with this issue? I want to run the example of &quot;getting data&quot; on the website and get the coordinates of the gaze point. But I am really new to C#. Any help is much appreciated. Many Thanks.<br /><br />Chandler<p>Statistics: Posted by <a href="http://theeyetribe.com/forum/memberlist.php?mode=viewprofile&amp;u=7960">skatac.li-1@tudelft.nl</a> — 02 May 2015, 18:58</p><hr />
]]></content>
</entry>
</feed>