Millisecond Forums

How to set corsor position

https://forums.millisecond.com/Topic19740.aspx

By gwat - 9/21/2016

I am new to Inquisit and am trying to code a word completion task.  I have found some useful hints here and elsewhere and am using a survey page with a sequence of captions (for revealed text) and textboxes (for hidden characters - that the user has to fill in).   For example, the target might be constucted as <INQU>[_]<S>[_]<T>  where the <..>'s are captions and  the[_]'s are textboxes, and  which displays as INQU_S_T.

My current problem is that I can't find how to set the cursor (which can be tabbed from textbox to textbox) back to the first textbox after creating the target word.

It would also be useful if I could set CapsLock on, but this is not so important.

Cheers
Geoffrey Watson, 
QUT, Brisbane
By Dave - 9/22/2016

I don't understand the problem. Please illustrate with a code example and provide a more detailed explanation (e.g. what does "creating the target word" mean?).
By gwat - 9/24/2016

I have worked this out.   You need to declare the missing letter boxes at the front and you can then tab through them.

My difficulty now is that although the response to this filling-in-the-blanks task is via the keyboard, you seem to have to use the mouse to signal completion.

Example code:
-------------------
<caption c1>
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/caption= "SP"
/position = (25,25)
</caption>
<textbox b1>
/caption= ""
/ responsefontstyle = ("Arial", 3%, false, false, true, false, 5, 1)
/position = (25+3,25)
/textboxsize = (2,3)
/ maxchars = 1
/required = true
</textbox>
<caption c2>
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/caption= "T"
/position = (25+5,25)
</caption>
<textbox b2>
/caption= ""
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/position = (25+6.5,25)
/textboxsize = (2,3)
/ maxchars = 1
/required = true
</textbox>
<surveypage SCT1>
/questions = [ 1 = b1,b2, c1, c2]
/ timeout = 100000
/showpagenumbers = false
 / showbackbutton=false
/ nextbuttonposition = (30,30)
/ showmousecursor = false
</surveypage>
<survey SentenceCompletionTask>
/ pages = [ 1 =  SCT1]
/ showbackbutton=false
/ nextbuttonposition = (30,30)
/ showmousecursor = false
</survey>
<expt >
/blocks = [1 = SentenceCompletionTask]
</expt>




By Dave - 9/25/2016

> My difficulty now is that although the response to this filling-in-the-blanks task is via the keyboard, you seem to have to use the mouse to
> signal completion.

No, you should be able to tab to the next button and then press enter.
By gwat - 9/25/2016

Thanks for the prompt reply.

The issue seems to be that I have been testing this code at home on an iMac,  and using enter/return on the continue button definitely doesn't work there.  At work (using windows) it works fine. 
I have checked the scancodes and on both machines show 28 for enter/return. 

The reason we are converting across to Inquisit (the original word completion task was written for Eprime) is that the researcher wants to run the experiment on the web, so we need something that works for all OS's