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

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

It works perfectly. 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

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>



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.


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search