Questions about clicking pictures


Author
Message
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 108K

Sophia,


nothing weird here. The stimuli are all set to /erase=false, so the remain visible. You have to take care of getting rid of them yourself. See the "How to erase stimuli" topic in the Inquisit documentation.


Also, you will at least need *two* different <trial> elements. One to show the initial fixation cross and pictures prior to selections, followed by another one to display the selection result (i.e., the "highlighted" picture). Else you need to rework things and use /responsemessage attributes.


Before you go about doing any of that though, please work through the various tutorials in the Inquisit documentation as well as the Task Library script I mentioned earlier.


Sophia
Sophia
Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)
Group: Forum Members
Posts: 16, Visits: 1

Hi Dave,



I got another problem. Please help!


I need a fixation cross before each trial. So I changed stimulusframs into stimulustims. But now it turned out very weird. It showed a blank page after I click the picture and the frame stayed after the trial together with the fixation cross. 




<trial picture1>


/ inputdevice = mouse


/stimulustimes = [0=ready; 700=left,right,targetborder,left1,target1,right1,done]


/ validresponse = (left1, right1,done)


/ontrialend = [if(trial.picture1.response=="left1")shape.left.color=red else shape.left.color=black]


/ontrialend = [if(trial.picture1.response=="right1")shape.right.color=red else shape.right.color=black]


/ branch = [if(trial.picture1.response!="done")trial.picture1]


</trial>



Sophia
Sophia
Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)
Group: Forum Members
Posts: 16, Visits: 1

It works perfectly. Thanks!!!



Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 108K

Depends on what exactly you want to do. E.g. how long you want a selected picture to remain highlighted.


For starters


/ontrialend = [if(trial.picture1.response=="left1")shape.left.color=red else shape.left.color=black]


etc.


Sophia
Sophia
Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)
Group: Forum Members
Posts: 16, Visits: 1

then how to write it?? 


Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 108K


If I define the shape color as black at the beginning of each trial like this, then the shape color will not change to red when I click it. 


I am confused.



You are reverting any changes you made within a single trial. That's why.


1st run of the trial -> click on left shape -> left shape is set to red


2nd run of the trial -> left shape is set to back to black *before it is ever displayed*.



Sophia
Sophia
Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)
Group: Forum Members
Posts: 16, Visits: 1


<trial picture1>


/ inputdevice = mouse


/ ontrialbegin = [shape.left.color=black]


/ontrialbegin = [shape.right.color=black]


/ stimulusframes = [1=left,right,targetborder,left1,target1,right1,done]


/ validresponse = (left1, right1,done)


/ontrialend = [if(trial.picture1.response=="left1")shape.left.color=red]


/ontrialend = [if(trial.picture1.response=="right1")shape.right.color=red]


/ branch = [if(trial.picture1.response!="done")trial.picture1]


</trial>




If I define the shape color as black at the beginning of each trial like this, then the shape color will not change to red when I click it. 


I am confused.


Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 108K

You simply need to reset the respective shape element's color to whatever you need at the beginning of a trial then.


Sophia
Sophia
Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)
Group: Forum Members
Posts: 16, Visits: 1

Hi Dave,



I got another question. 


When I click one picture in one trial, the frame will appear. But the frame will last forever!  I need the frame to disappear when I click next. Then start another trial. 


Please help. Thanks!


Sophia
Sophia
Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)
Group: Forum Members
Posts: 16, Visits: 1

Thanks so much!


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search