Different valid responses and count mouseclicks


Author
Message
Tamara
Tamara
Associate Member (122 reputation)Associate Member (122 reputation)Associate Member (122 reputation)Associate Member (122 reputation)Associate Member (122 reputation)Associate Member (122 reputation)Associate Member (122 reputation)Associate Member (122 reputation)Associate Member (122 reputation)
Group: Forum Members
Posts: 11, Visits: 197
Hi,
I'm trying to create a trial where participants have to explore a page. The next trial they see depends on the stimulus they click at (either chronik or menu). Everything worked well but I also want to count the clicks of the mouse they are doing in each trial until they click the right buttons (either chronik or menu). So I ad "/ validresponse = (lbuttondown)" and "/ isvalidresponse = [if(trial.start_chronik.response == "lbuttondown"){values.mouseclick += 1; false} else true]" and unfortunately, it doesn't work anymore and I don't know why. It seems like Inquisit can't handle the different valid responses. I would be thankful for any help.

<trial start_chronik>
/ stimulusframes = [1=chronik, menu, startseite]
/ inputdevice = mouse
/ validresponse = (lbuttondown)
/ validresponse = (chronik, menu)
/ isvalidresponse = [if(trial.start_chronik.response == "lbuttondown"){values.mouseclick += 1; false} else true]
/ branch = [if (trial.start_chronik.response == "menu") trial.chronik_w2]
/ branch = [if (trial.start_chronik.response == "chronik") trial.chronik_w1]
</trial>
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View

Reading This Topic

Explore
Messages
Mentions
Search