Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

[open] Hebrew text_input\Form_Text_input\ Text_input with "ok" button instead of "Enter"\ Image

edited September 2015 in OpenSesame

Hi everyone,

My ultimate goal is to present an image or two plus the option to write a few lines in Hebrew and then press "ok"
in order to move to the next screen (instead of just "enter" which will be used in order to write a new line).

The problems are as such:
1.While using a "Sketchpad" + "Text_Input" the "Text_Input" won't allow Hebrew input and won't show at the same
time as the image from the "Sketchpad".Also, it's a little slow.

2.While using the "Form_Text_Input" it won't accept images inserted in it's inline script, and won't show the image from the sketchpad + won't allow to insert an "Ok" button.

***I'm new to programming and OpenSesame, so I might be doing lots of funny mistakes, please don't laugh at me;)))

thanks ahead,

Aviv

Comments

  • edited 11:49AM

    Hi Aviv,

    At the top of your experiment in the overview window, you can set the font from 'mono' (default) to 'hebrew'. This should take care of OpenSesame's ability to display Hebrew characters.

    To reach your goal, i.e. displaying images, providing a text input option and an "OK" button, you may want to resort to using a custom form. This will require some coding, but luckily there's pretty detailed instructions right here:
    http://osdoc.cogsci.nl/forms/custom-forms/
    (Also with regard to images and buttons specifically)

    I suggest you read up on custom forms, try your hand at it and, of course, post any question you may have here.

    Good luck!
    Cheers,

    Josh

  • edited 11:49AM

    Hi Josh, thanks!

    That's good, I made a lot of progress, but haven't figured out yet how to solve all of my problems:
    1. I need a code enabling me to use "Enter" to switch between lines (I'm using: widget 0 2 1 1 text_input focus="yes" stub="XXXX" return_accepts="no" - but it won't do the job).

    1. I need a a code for not allowing a subject to proceed to the next page unless he writes something (right now they press "Next" button and proceed).

    3.Right now the form consists of instructions + assignments (presented by images) in each trial. I need the instructions to appear only in the first trial.
    my code looks like this at the moment (form_base):
    set cols "1;1;1;1;1"
    set rows "1;1;1;1"
    widget 3 0 5 1 image path="InstAbst2.PNG(Instructions file)"
    widget 3 1 2 1 image path="[catabst]"
    widget 0 2 5 1 text_input focus="yes" stub="(please anwer the questions)אנא ענה עלהסעיפים" return_accepts="no" var="response"
    widget 0 3 5 1 button text="הבא(Next)"

    4.also I need to be able to randomize my trials between blocks, not only within each block separately. I haven't figured that out yet.

    Thanks again,

    Aviv

  • edited 11:49AM

    Hi Aviv,

    I hope you already sorted things out by yourself, but in case not, here are a few pointers that could be helpful:

    1) You can have a look at this discussion. It dealt with this problem you are describing.

    3) How about separating instructions from the rest? So, put them in a separate sketchpad or form? Then you could add it before the experimental sequence. so that it is repeated only once?

    4) What exactly do you mean with randomizing between blocks? Can you give a little more detail on that?

    Thanks,

    Eduard

    Buy Me A Coffee

Sign In or Register to comment.