Welcome! Log In Create A New Profile

Advanced

More than one Desitinations for DragAndDrop adapter

Posted by surabhi.ramawat 
More than one Desitinations for DragAndDrop adapter
July 20, 2020 08:15AM
Hello,

I am trying to write the timing script for a task using the DragAndDrop adapter.
In this task I need the Success condition for this adapter to be true when the stimulus is dropped at one of the two locations on the screen. So, I needed to know, if there is a way to define more than one locations or an array of coordinates as the input property 'Destination' for this adapter?

Thanks in advance.
Re: More than one Desitinations for DragAndDrop adapter
July 21, 2020 08:43PM
You have two options. One is to make two adapter chains that each have a DragAndDrop adapter with a different destination and combine them with the AllContinue adapter.
https://monkeylogic.nimh.nih.gov/docs_RuntimeFunctions.html#AllContinue

Another option is to make your own adapter that does exactly what you want. Making the DragAndDrop work for multiple locations is actually not that difficult, so I updated it myself. Download the new package to try it. There is a new property added to indicate the chosen destination.
https://monkeylogic.nimh.nih.gov/docs_RuntimeFunctions.html#DragAndDrop
Re: More than one Desitinations for DragAndDrop adapter
July 22, 2020 08:41AM
Dear Jaewon,

That's a great help. Thanks a lot

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.