Hi Jonathan,
Your question invoked the memory of a two week long struggle to get answerboxes to work in e-prime (1... this was 15 years ago, scarily enough). I dug up the task from back then and it seems that this code also still works in e-prime 2.
****
Dim Answer As Variant
answer = answerbox ("do you want to contribute", "yes", "no",, "headertext in the top area of the box" )
c.SetAttrib "answergiven", answer
****
In our case back then, the trick turned out to be the double comma to skip the helpfile (I think?) parameter.
In a similar vein, this seems to work for an ask box if you require more than two answer options/ free string answers:
***
Dim Answer As Variant
answer = askbox ("How many targets did you see?","optional preffiled answer suggestion, "headertext In the top area Of the box" )
c.SetAttrib "answergiven", answer
***
If you do not want a prefilled answer suggstion, but do want to have a header title to the box, use double comma to skip the middle parameter. If you want neither you can close the line directly after the prompt question (the defautl header text is "e-run" ).
It may be useful to also add this line " mouse.ShowCursor True " at the top to make sure that the mouse is operable.
That said: we used answerboxes back then because we aimed for the program to not look like an e-prime program, as we tried to deceive our participants into thinking that they were playing against others on other computers. For most other uses I would say that using e-primes 'normal' input options (i.e. enabling an input mask on for instance a slide object, with en echo back to the slide object if you like) would give you easier control over for instance allowable responses (numeric only?) and logging of responses, accuracy, and timing (the above code has a line to log the response given in to the data file, similar lines should be written if you want to log otehr information too, while on a slideobject this would be a more simpler cases of checking a box).
Good luck !
Anne