Avatar

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Pascal

About

Username
Pascal
Joined
Visits
166
Last Active
Roles
Moderator
Thanked
10

Comments

  • Hi Yu-Cheng, could you specify which OpenSesame version you are using? And which version of the mousetrap plugin (i.e., the development version or one previously released version)? Best, Pascal
  • Hi Gina, I would like to use mousetrap to analyze how people navigate between landmarks on the screen using the keyboard/mouse -- this means that the start and end points are not the same, so if I understand correctly, I would need to spatially norm…
  • Hi all, thanks a lot for providing a solution! I was out of office for a conference so I only checked the forum again today. Regarding the times < 300 ms: I think that this has to do with ensuring an accurate presentation time taking the monitor re…
  • Hi, this error could occur if you are using the "psycho" backend together mousetrap. As noted in the mousetrap documentation, mousetrap is not compatible with this backend. If you are using the "psycho" backend, could you switch the backend to "xpyr…
  • Hmm this is weird. I just checked the installation procedure using OpenSesame 3.2.7 under Windows 7 and Windows 10 and it worked for me. I run OpenSesame as an administrator and then paste the following two lines in the debug window import pip pip.m…
  • The message you are posting is not an error but a warning, because OpenSesame is using an old version of pip. If you have run the commands specified above, you simply need to restart OpenSesame and the mousetrap items should be present. If not, coul…
  • Hi, if you use the mousetrap_response item to collect the mouse response, you can use it to reset the mouse to the specified position. It also automatically computes the initiation_time variable, which is the time until any movement was initiated (w…
  • Hover effects are currently not implemented in mousetrap so I think that Eduard's approach makes the most sense. A similar strategy using mousetrap could be (copied and adapted from Eduard's post): 1) Create and show default canvas 2) Enter a while …
  • This discussion is a duplicate of the following discussion so I closed it: http://forum.cogsci.nl/discussion/5001/plug-in-not-working
  • Hi there, to install the mousetrap plugins, you can follow installation instructions in the mousetrap-os documentation: https://github.com/pascalkieslich/mousetrap-os#installation If you are using OpenSesame 3.2 or later, make sure to install the de…
  • Hi Takashi, there is no mousetrap function that allows you to split a trajectory directly. However, you can do this yourself by only passing a selected range of positions to mt_measures: library(mousetrap) mt_example <- mt_time_normalize(mt_example)…
  • Hi Matt, the quoted part relates to inserting the actual labels as text on the screen. What you mean is naming the rect elements, i.e., what is described afterwards: "If in the following variant 3a is used to define buttons (the easier and preferred…
  • Hi Gérard, I am glad your problem is solved. Just a short comment on the button names: It is possible to specify button names using left_button etc. as Allowed mouse buttons in the mousetrap_response item. This has been implemented since mouse…
  • Hi Gérard, I don't quite understand what you mean with "mouse entry block". Could you describe what you mean with this? And what it is exactly that you are trying to achieve? Mousetrap can e.g. be used if you want to draw buttons on a sketchpad an…
  • Hi Bar, hi Sebastiaan, I have not tried out OpenSesame & mousetrap with Windows tablets so far. However, internally mousetrap uses OpenSesame's Mouse.get_click function to detect cursor clicks. So, based on what Sebastiaan suggested I would s…
  • Regarding question 2: indvidual ideal end points per trial (other than the actual start and end points, that are ued by default) are so far not implemented in mt_deviations. As a workaround, you could create subsets of the data using mt_subset for e…
  • Hi J, regarding question 1: you identified the problem correctly - you need more than 2 recorded positions. Mousetrap provides a function for counting the number of recorded positions which can then be used to exclude the trials. An example co…
  • Great you found a solution. I think the problem was caused by updates in dplyr and the corresponding necessary changes we implemented in mousetrap.
  • Hi, I thought it might be helpful to provide a bit more information on the process of reading the data into R (in general and using readbulk in particular). If you read any file into R, R by default looks in the current working directory. You can…
  • Hi, if you know / use R, you could use the read_bulk function from the readbulk package to merge all xlsx files. The command would look something like this assuming that you have one folder named raw_data that contains all xlsx files to merge. …
  • Hi Mike, I think the following example illustrates what you would like to do: library(mousetrap) # Import example raw data mt_data <- mt_import_mousetrap(mt_example_raw) # We assume a centered coordinate system. # If not, you can use mt_a…
  • Hi Hansol, thanks, great to hear you like it . In the development version of mousetrap that you are using, there are two ways how to define buttons and you are kind of mixing the two of them. I would suggest to use the first variant (defining …
  • Hi Viola, please use the following to link to find an updated file for the mousetrap_response plugin that will set the mouse cursor to invisible while the mousetrap_response item is running. Note that this assumes that you are using the most rece…
  • Hi Viola, you cannot influence the visibility of the mouse cursor while mousetrap is running, as it is internally enforce that it is visible (as I could not think of a use case with an invisible cursor). However, I could provide you with a modified…
  • This script would classify everything as no response that is within a rectangle of +/- 30 pixel around the screen center (0,0): xpos = var.xpos_new_mousetrap_response ypos = var.ypos_new_mousetrap_response if var.response_new_mousetrap_response …
  • Hi Viola, how would you like to define this range? e.g., a rectangular area around the start position? Best, Pascal
  • Hi Viola, if you want to define "attempt" as any movement (even a single pixel) that did not reach one of the buttons within the time limit you can use the initiation_time variable (which will be None if there was no movement in the trial). You c…
  • Hi! let's start with an example using the example dataset from mousetrap: library(mousetrap) mt_example <- mt_spatialize(mt_example) mt_example <- mt_cluster(mt_example) By default, mt_cluster stores the cluster of each trial in a ne…
  • Hi Tommaso, I have amswered your questions in your original post in the mousetrap category: http://forum.cogsci.nl/index.php?p=/discussion/4608/go-no-go-respond-moving-the-mouse Best, Pascal