|
Post by cogprofessor on Jun 9, 2022 15:27:36 GMT
I have an experiment in which subjects see an example containing blanks. Below the example there are textboxes, and the subject is instructed to type what should be in the blanks into the textboxes. Then they see the example with the blanks filled in correctly so they can check their responses.
Then, the experiment moves on to a second trial with a new example. But I find that the textboxes, with whatever the subject typed in them, remain on the screen.
Nothing I've tried clears the textboxes. I've tried: clear screen clear textboxes clear 1 (to clear the first textbox) clear -1 (to clear the most recent textbox) clear -17 (one of the textboxes is 17 lines back) I've even tried show text " ... " at the textboxes location to try to overwrite it with text which is nothing but spaces.
Does anyone know how to solve this problem?
Thanks in advance for your help.
|
|
|
Post by PsyToolkit on Jun 10, 2022 12:10:53 GMT
task test keys enter show text "press enter when ready" 0 -400 textbox new 0 0 700 400 textbox 1 focus readkey 1 999999 textbox 1 clear show rectangle 0 0 200 800 green delay 1000 readkey 1 99999 block test tasklist test 1 end
|
|
|
Post by cogprofessor on Jun 10, 2022 16:57:32 GMT
Thank you. I found that "textbox 1 clear" works to clear one textbox. I'm able to get by with one textbox, but in the future I may want to use two or more textboxes. When I used two, I find that "textbox 1 clear" cleared the first textbox. I expected that something like:
textbox 1 2 clear or textbox 1 clear textbox 2 clear
would clear both. Now that I think about it, perhaps
textbox 1 clear #followed by (because now the second textbox is the first textbox) textbox 1 clear #again. Maybe that would work.
Thanks again.
|
|