Can text's be clicked and detected?


Author
Message
EN
EN
EN
posted 5 Months Ago HOT
Associate Member (200 reputation)Associate Member (200 reputation)Associate Member (200 reputation)Associate Member (200 reputation)Associate Member (200 reputation)Associate Member (200 reputation)Associate Member (200 reputation)Associate Member (200 reputation)Associate Member (200 reputation)
Group: Forum Members
Posts: 50, Visits: 241
Hello,
on my study, I want to present two options to participants -- right now, in text form -- but would like to adjust the text based on the value of globals variabls (defined under values) that will change for each participant based on the scores obtained during a pre-callibration phase.

I wonder if:

1) the /items within a <text> can be dynamically modified based on the values of such global variables?
2) can the /position defined within a <text> be modifed also? I would like to "randomize" the positions of the options between left and right at each trial.

Below is some sample code of what I'm trying to do.

3) On a related topic, is it possible to dynamically chance the /caption of <sureypage>?

Any help would be greatly appreciated. Thanks a lot!

EN

--
<values>
//xxx
/ easyThresh50 = 8 //The number of boxes at the 50% level
/ mediumThresh65 = 10 //The number of boxes at the 65% level
/ mediumThresh80 = 13 //The number of boxes at the 80% level
/ hardThresh95 = 15 //The number of boxes at the 95% level
//yyy
/ low_pay = 2 //Low reward
/ medium_pay = 6 //Medium reward
/ high_pay = 10 //High reward
</values>

<text rest_1_cr>
/ items = ("<center>Rest<br>1 credit</center>")
/ txColor = (0, 0, 255)
/ txBGColor = (255, 255, 255)
/ position = (20%, 50%)
/ valign = top
/ halign = center
</text>

<text effort_n_cr>
/ items = ("<center>xxx boxes<br>yyy credits</center>")
/ txColor = (0, 0, 255)
/ txBGColor = (255, 255, 255)
/ position = (80%, 50%)
/ valign = top
/ halign = center
</text>

<trial bottomleftpractice>
/ stimulustimes = [0=rest_1_cr, effort_n_cr]
/inputdevice = mouse
/timeout = 10000
</trial>
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
EN - 5 Months Ago
Dave - 5 Months Ago
EN - 4 Months Ago
Dave - 4 Months Ago
                     This is awesome, thanks Dave! Best, EN
EN - 4 Months Ago
                         Hello Dave, I wonder if there is a way to make the entire gray...
EN - 4 Months Ago
                             The entire area defined by /size is clickable. I don't know why you...
Dave - 4 Months Ago
                                 I noticed that the gray area outside the green boundary does not...
EN - 4 Months Ago

Reading This Topic

Explore
Messages
Mentions
Search