trail making test
in OpenSesame
Hi,
I am a new user of OpenSesame.
I am interested to implement the Trail Making Test in experiments (cf. sample picture, Instructions: "There are numbers in circles on this page. Please take the pencil and draw a line from one number to the next, in order. Start at 1 [point to the number], then go to 2 [point], then go to 3 [point], and so on. Please try not to lift the pen as you move from one number to the next. Work asquickly and accurately as you can.").
Is it possible to draw a line produced by user in real time?
How can I do this?
Thanks a lot for your help.
Comments
Hi Lucie,
Yes, that's possible, and not even that complicated. But how would the user draw the line, though? With a finger on a touch screen? Or with a Wacom-like tablet? Or with the mouse?
Cheers!
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Hi Sebastiaan,
The user will draw the line with the mouse or with a finger on a touch screen.
Thank you for your answer.
Lucie
Hi Lucie,
In that case, something like the logic below should do the trick. You may need to tweak the details though. But if you carefully read through the code, then you will probably be able to understand how it works and modify it for your purpose.
Cheers!
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Hi Sebastiaan,
Thank you so much.
I look and contact you again if necessary.
When it is done, the implemented test can be shared by example experiments?
Best,
Lucie
> When it is done, the implemented test can be shared by example experiments?
That's very generous! 👍️
There's no systematic system for sharing experiments. However, you could upload it to the OSF in a public project. That's what I usually do.
Check out SigmundAI.eu for our OpenSesame AI assistant!
Hi Sebastiaan,
I edited the experiment and I want to put it online.
I understand inline_script must be inline_javascript but how?
Thank you for your help,
Best regard,
Lucie
Hi Lucie,
> I edited the experiment and I want to put it online. I understand inline_script must be inline_javascript but how?
That depends with what you mean by putting it online.
inline_javascriptitem. JavaScript and Python are different programming languages. This translation process will at least be tricky, and perhaps not even possible because the JavaScript API does currently not support everything that the Python API supports.I hope this clear things up!
Cheers,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Hi Sebastiaan,
It is your second suggestion, I want people to be able to run the experiment in a browser. I am sorry but I do not find the "inline_javascript" item on OpenSesame.
Could you help me?
I will also share the experiment(that is already) with the community.
Best regards,
Lucie
> It is your second suggestion, I want people to be able to run the experiment in a browser. I am sorry but I do not find the "inline_javascript" item on OpenSesame.
This item is new in OSWeb 1.3, which is included in OpenSesame 3.2.7. So you probably need to update! However, as I said, translating your scripts to JavaScript may be tricky!
Check out SigmundAI.eu for our OpenSesame AI assistant!
I actually didn’t have the latest version...
I will try because I need it.
I will let you know if I make it.
Another question: Is it possible to have the same visual rendering on the browser as on the computer?
browser:
computer:
Thanks for all,
Lucie
> Another question: Is it possible to have the same visual rendering on the browser as on the computer?
If you want to have the exact same rendering, then I would create images with the text and show these. Otherwise there will be slight differences between the desktop and the browser (and possibly even between different browsers).
Check out SigmundAI.eu for our OpenSesame AI assistant!
OK, thank you for this solution!
Best regards,
Lucie
Hello Lucie,
You said that you were agree to share your Trail Making Test experiment.
I'm so interesting to have it. How it's possible to get your work.
Thanks a lot
Frédéric