lastlavel vs finishlabel


Author
Message
kulajw
kulajw
Guru (5.9K reputation)Guru (5.9K reputation)Guru (5.9K reputation)Guru (5.9K reputation)Guru (5.9K reputation)Guru (5.9K reputation)Guru (5.9K reputation)Guru (5.9K reputation)Guru (5.9K reputation)
Group: Forum Members
Posts: 51, Visits: 256
Hi All

I try to create pre and post instruction, I have script like this:

<page 1>
text
</page>
<page 2>
text
</page>
<page 3>
text
</page>
<page 4>
text
</page>
<page 5>
text
</page>

<instruct>
/ fontstyle = ("Verdana", 12pt, true)
/ windowsize = (800px, 600px)
/ wait = 1000
/ lastlabel = ("Start main task")
/ nextlabel = ("Next")
/ prevlabel = ("Previous")
/ finishlabel =( "Clik to finish exsperiment")
/ inputdevice = mouse
</instruct>

<block a>
/preinstructions = (1,2,3)
some trials
/postinstructions = (4,5)
</block>

I would like to have lastlabel button on page 3  with text: "Start main task" and finishlabel  button on page 5 with text "Clik to finish experiment".
Problem is I have either lastlabel text or finshlabel text on both pages.

Have you any idea how can I fix it?

Thanks for help ;)




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: 104K
/lastlabel and /finishlabel are identical. Both affect the label for the final page in a given set. I.e.

/preinstructions = (1,2,3)

#3 in the above and #5 in the below:

/postinstructions = (4,5)

If you want to change the label, you can do so by setting the instruct.finishlabel property at runtime:

<instruct>
/ finishlabel = "Label"
</instruct>

<page a>
...
</page>

<page b>
...
</page>

<block myblock>
/ onblockend = [instruct.finishlabel="Different Label"]
/ preinstructions = (a)
/ postinstructions = (b)
</block>

kulajw
kulajw
Guru (5.9K reputation)Guru (5.9K reputation)Guru (5.9K reputation)Guru (5.9K reputation)Guru (5.9K reputation)Guru (5.9K reputation)Guru (5.9K reputation)Guru (5.9K reputation)Guru (5.9K reputation)
Group: Forum Members
Posts: 51, Visits: 256
Thanks it works perfect !

Thank you :)

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search