Hi everyone.
Looking for a way to enable users to paste text during an experiment. For instance - something that would enable pasting text as an input for ASK or GETECHOSTRING.
In principal - the first step of my experiment is to register the user’s ID, and I’m looking for a way that users won’t have to type in, and just paste from the clipboard instead, but in PTB and not with an external matlab function.
Any ideas?
Other info -
PTB version - '3.0.19 - Flavor: beta - Corresponds to SVN Revision 13508
OS - Windows 10, but also running remotely on Linux x64
Matlab - R2022b
Why not use an external function? On macOS !pbpaste (on Linux there are a bunch of clipboard tools also) should get the clipboard content and should be able to be run from MATLAB via system, not sure on Windows but I’m sure it exists also…
MATLAB has the function clipboard().
You might, for example, want to initialize GetEchoString()'s input string with the content of the clipboard, if the clipboard contains a valid ID, and the user can then just confirm or replace the input string in case it shows the wrong ID.