PASAT modification


Author
Message
gusti
gusti
Associate Member (70 reputation)Associate Member (70 reputation)Associate Member (70 reputation)Associate Member (70 reputation)Associate Member (70 reputation)Associate Member (70 reputation)Associate Member (70 reputation)Associate Member (70 reputation)Associate Member (70 reputation)
Group: Forum Members
Posts: 1, Visits: 3
Hello!

I have modified PASAT (in attachment) so, that boxes with answers are smaller to minimize additional time taken for mouse movement. It is for more reliable results so they could be compared with normative data of oral answer test.
But now correct answers appear in different position than initial boxes with answers.
What could be the problem?

Attachments
PASAT2.iqx (204 views, 21.00 KB)
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
Look at

<text correctAnswer>
/ erase = false
/ items = answerList
/ position = (values.posX, values.posY)
/ fontstyle = ("Verdana", 5.5%, true, false, false, false, 5, 0)
/ select = values.currentSum
/ size = (2%, 2%)
</text>

in the script. Notice that the element's onscreen position is determined by two values (posX and posY).

See <trial practice> and <trial test> for the calculations of those position values:

<trial practice>
/ ontrialbegin = [
values.temp2 = number;                          
values.currentSum = values.temp1 + values.temp2;
values.currentDigit = values.temp2;
values.temp1 = values.temp2;
values.posX = (mod(values.currentSum - 1, 9) + 1) * 10;
if (values.currentSum >= 1 && values.currentSum <= 9) values.posY  = 40% else values.posY = 60%;

]
...
</trial>

<trial test>
/ ontrialbegin = [
values.temp2 = number;                          
values.currentSum = values.temp1 + values.temp2;
values.currentDigit = values.temp2;
values.temp1 = values.temp2;
values.posX = (mod(values.currentSum - 1, 9) + 1) * 10;
if (values.currentSum >= 1 && values.currentSum <= 9) values.posY  = 40% else values.posY = 60%;

]
...
</trial>

You need to adjust those calculations to fit your needs / the altered positions of your response boxes.

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search