Mouse-tracking in Minno.js

31 views
Skip to first unread message

Mayan Navon

unread,
Nov 14, 2019, 5:17:41 AM11/14/19
to Minno.js
Hi everyone,

Where can I find the documentation regarding the mouse-tracking in Minno.js? - I couldn't find it in the 0.1 docs.

Thanks!
Mayan

Yoav Bar-Anan

unread,
Nov 14, 2019, 5:18:52 AM11/14/19
to Mayan Navon, Minno.js

--
You received this message because you are subscribed to the Google Groups "Minno.js" group.
To unsubscribe from this group and stop receiving emails from it, send an email to minnojs+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/minnojs/22fec5a0-4fb6-4e17-9917-87b6946f76a1%40googlegroups.com.

Mayan Navon

unread,
Nov 14, 2019, 6:50:22 AM11/14/19
to Minno.js
Great, thanks!

Follow-up question:

I used startMouseTracking to start logging the mouse movements (and stopMouseTracking to end it).
I've inserted that call during an interaction (see below).
However, I get an error in the console, saying "Uncaught Error: unknown action: startMouseTracking".
Is there anything else I need to add to my code?

Here is my showfiles and launch URL. The task is called sortpre.js

            {
                conditions: [{type:'inputEquals',value:'showFace'}], 
                actions: [
                    {type:'showStim',handle:'target'},
                    {type:'startMouseTracking', logAs:'tracking', logRate: 15},    //, logStimulusLocation: ['StimulusLocationHandle']            
                    {type:'setInput',input: {handle:'groupA',on:'click',stimHandle: 'myGroupAHandle'}},
                    {type:'setInput',input: {handle:'groupB',on:'click',stimHandle: 'myGroupBHandle'}},                    
                    {type:'resetTimer'} 
                ]
            },

Michael Pinus

unread,
Nov 14, 2019, 7:11:19 AM11/14/19
to Yoav Bar-Anan, Mayan Navon, Minno.js

As a rule of thumb, it might be better to use a non-version specific link to access the documentation landing page, such as:
https://minnojs.github.io/minno-time/
This should bring up the docs for the latest stable release of Minno, currently v0.3.

Then, one can click on the version number at the upper-right of the page, and see the docs for the next (beta, currently in testing) version of Minno, 0.5 at the moment of writing.

Here’s an example:
currentDocsVersion.gif

A few of things to consider:

  1. The non-version link only works for the landing page, and not for specific pages within the docs.
    That is, while https://minnojs.github.io/minno-time/ will auto-redirect to the latest version, a specific link such as https://minnojs.github.io/minno-time/time/API.html will not .

  2. The docs correspond to a specific version of Minno. You should verify your studies use the latest stable version, unless directed otherwise. The version your study uses is set in the .expt.xml file, with this line:

    <Task id="mgrtest" file="mgr.js">/common/all/js/minnojs/0.3.jsp</Task>
    
  3. There are probably a few undocumented features. Minno, and the Minno docs, are in active development, and therefore sometimes the docs are not entirely complete. If you encounter a section in the docs that isn’t accurate (per the Minno version you’re using), please post about it in the group.

Michael Pinus, M.A.
Doctoral Student, STREALTH Lab, Ben-Gurion University of the Negev, and Social Perception Lab, Tel-Aviv University.

“What makes it particularly difficult is that we enter here not into the vaccum of the completely unknown, but into the chaos of the incompletely explored.” C. F. Keppler

יואב בר-ענן

unread,
Nov 14, 2019, 8:02:48 AM11/14/19
to Minno.js
Hi Mayan, 

Please test whether that happens even when you define the miTime task as a 'time' task:
sortpre : [{
             type: 'time', name: 'sortpre', scriptUrl: 'sortpre.js'
}]

Yoav
Reply all
Reply to author
Forward
0 new messages