Welcome! Log In Create A New Profile

Advanced

hotkey; flash fixation point

Posted by gianni 
hotkey; flash fixation point
May 10, 2021 02:11PM
Hi there,
I am interested in adding a hotkey which when pressed, will quickly flash the fixation point to a slightly larger size, and then back to it's starting size -- similar to the "sparkle/S" hotkey in Presentation. I am using a userloop functionality to present a fixation dot, followed by a small movie. It is helpful to the grab the subject's attention during tasks which begin with fixation -- others may find this functionality useful as well . however, I am not sure where to start, given the examples under 'hotkey' in docs. Are there any examples ofhow to manipulate task objects via hotkeys?

attaching userloop & timing file if helpful.

thanks much for your time!
best,
Geena
Attachments:
open | download - fixate_reward_userloop_v4.m (4 KB)
open | download - fixate_reward_v4.m (4.8 KB)
Re: hotkey; flash fixation point
May 10, 2021 06:03PM
If you did not notice yet, TaskObjects are not manipulable while being presented, which is why NIMH ML has the scene framework.
https://monkeylogic.nimh.nih.gov/docs_CreatingTask.html#RuntimeVersion2_Background

But you can do something similar with a simple trick. See the attached.
Attachments:
open | download - test.txt (173 bytes)
open | download - test.m (89 bytes)

The National Institute of Mental Health (NIMH) is part of the National Institutes of Health (NIH), a component of the U.S. Department of Health and Human Services.