creating code for hittest

468 vues
Accéder directement au premier message non lu

erin.s...@gallaudet.edu

non lue,
24 juil. 2013, 10:47:3824/07/2013
à e-p...@googlegroups.com
I am new to eprime, and struggling to set up inline code for a relatively simple lexical decision experiment using eprime. The subject is presented with two images on the same slide - one on the left side and one on the right. The tricky part is that I am using a touch screen, and I would like to log which item was selected. I have already set the response type as a mouse click, but am having difficulty writing code for the hittest that will recognize which part of the screen was selected. I have seen a few posts on google groups and the PST forums that offer sample scripts that utilize eprime's hit test for various experiments, but none of them seem to work for my particular case.  Any help scripting this out would be greatly appreciated.

Paul Groot

non lue,
24 juil. 2013, 11:34:4824/07/2013
à e-p...@googlegroups.com
perhaps the attached example is useful. It shows how to select two images out of a grid of 16 (in this case all identical images). Some additional script was added to add relevant info to the output.

cheers
Paul


On 24 July 2013 16:47, <erin.s...@gallaudet.edu> wrote:
I am new to eprime, and struggling to set up inline code for a relatively simple lexical decision experiment using eprime. The subject is presented with two images on the same slide - one on the left side and one on the right. The tricky part is that I am using a touch screen, and I would like to log which item was selected. I have already set the response type as a mouse click, but am having difficulty writing code for the hittest that will recognize which part of the screen was selected. I have seen a few posts on google groups and the PST forums that offer sample scripts that utilize eprime's hit test for various experiments, but none of them seem to work for my particular case.  Any help scripting this out would be greatly appreciated.

--
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+u...@googlegroups.com.
To post to this group, send email to e-p...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/ba5ebca1-5197-4ea9-9d27-11696f6fd89c%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

ImageSelectionExample.zip

erin.s...@gallaudet.edu

non lue,
24 juil. 2013, 14:55:5724/07/2013
à e-p...@googlegroups.com
Paul,

Thank you for your help.  The example that you posted seems to be what we are looking to do.  Unfortunately it was created with a newer version of E-prime Pro that we have in our lab, and I cannot open the files.  I am not sure if there is any way around this issue?  

Erin

Paul Groot

non lue,
24 juil. 2013, 16:26:5124/07/2013
à e-p...@googlegroups.com
Well, thanks to the microsoftish strategy of PST regarding their file formats, there is no easy way to translate this file back to a previous version. (At our MRI site we have to deal with this incompatibility nightmare on a daily basis.) If upgrading to the latest release is not an option, you could try to install the latest version on another computer just to check the script. (I use a virtual machine to run different version of EStudio)  I also attached a very simplified version of a similar script, that was created with an older version. Not as fancy as the other one, but at least shows how to detect the selected object.

best
paul




ImageSelectionAndActiveSlide.es2
Répondre à tous
Répondre à l'auteur
Transférer
0 nouveau message