Howdy, Stranger!

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

Supported by

[solved] OpenSesame doesn't respond to first keypress

edited March 2015 in OpenSesame

Okay, so I'm really new to OpenSesame, but I did manage to make a simple validation study using short video clips. It runs perfectly, with only one problem. After each clip, two keyboard responses have to be given. I set the duration on key press, but the text display showing the response categories only disappears after the second keypress. First, I thought it was because I had forgotten to set the duration of the clip (this was still on keypress) but after I changed this to the duration of the clip, there was no difference.

My first question is: does anyone know what to do about this? I have a video clip, followed by a text display, followed by a keyboard response and a logger. I'm not sure if both keypresses are recorded in the log file, I don't have to analyze the data myself so I haven't figured out how the log file works, but I can upload one if it is helpful.

My second question is: I mentioned that two responses have to be given after each video clip. Do I need to add a logger after each keyboard response, or is one logger enough?

Comments

  • edited 8:55PM

    Hi Annemay,

    Welcome!

    As far as I can tell the problem is that you use the text_display item as a response collection item as well, by setting the duration to 'keypress'. So, first text_display collects one response, and then keyboard_response collects another response. The easiest way to get around this is by setting the duration of the text_display to 0 or (non-preferred) by omitting the keyboard_response. You can find a similar situation (using a sketchpad instead of a text_display) in the tutorial.

    More info:

    Hope this helps!

    Sebastiaan

  • edited March 2015

    Hi Sebastiaan and Annemay,

    I have checked for other topics if there was a question like that i would ask, but i couldn't find. I have a problem similar to that Annemay have mentioned before.

    I target some contiguous questions to the subjects via the form_text_input and collect the reaction times via the logger. My main purpose is to obtain the first keypress time following the question. But the programme is giving me the time that the subjects press the ENTER key and move on to the other questions. I have no interest in the whole answering time, i have to obtain exactly the first keypress. Is there an option for this purpose? For example can we add the first keypress as a "new variable"?

  • edited March 2015

    Hi Deniz,

    I'm afraid the solution to your question is not trivial. It is not impossible, but it requires you to do quite some inline_coding. Also, I don't think you should you use the form_text_input here. Instead, you could manually define a basic version of this item, with the addition that, the after the first key press a variable is created that contains the reaction time for this first stroke.

    The general procedure looks like this (all placed in an inline_script):

    1) in a while loop, your prompt for subjects to write something (e.g. input())
    2) As soon as the subjects starts to type, you save the reaction time in a variable (In case the input() function doesn't stop until Enter was pressed, you can force it to break for any input and make the following actions depending on which key was pressed)
    3) In every iteration of the loop, you update a string containing everything that is already written and print it to the canvas (OpenSesame's canvas.text())
    4) As soon as Enter was pressed, you break the loop and go to the next element.

    I hope this is enough, to get you started. Let us know if you need more help with it.

    Good luck,

    Eduard

    Edit: This is actually not comparable to the issue annemay had. It would have make more sense, to open a new thread for your issue.

    Buy Me A Coffee

Sign In or Register to comment.

agen judi bola , sportbook, casino, togel, number game, singapore, tangkas, basket, slot, poker, dominoqq, agen bola. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 50.000 ,- bonus cashback hingga 10% , diskon togel hingga 66% bisa bermain di android dan IOS kapanpun dan dimana pun. poker , bandarq , aduq, domino qq , dominobet. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 10.000 ,- bonus turnover 0.5% dan bonus referral 20%. Bonus - bonus yang dihadirkan bisa terbilang cukup tinggi dan memuaskan, anda hanya perlu memasang pada situs yang memberikan bursa pasaran terbaik yaitu http://45.77.173.118/ Bola168. Situs penyedia segala jenis permainan poker online kini semakin banyak ditemukan di Internet, salah satunya TahunQQ merupakan situs Agen Judi Domino66 Dan BandarQ Terpercaya yang mampu memberikan banyak provit bagi bettornya. Permainan Yang Di Sediakan Dewi365 Juga sangat banyak Dan menarik dan Peluang untuk memenangkan Taruhan Judi online ini juga sangat mudah . Mainkan Segera Taruhan Sportbook anda bersama Agen Judi Bola Bersama Dewi365 Kemenangan Anda Berapa pun akan Terbayarkan. Tersedia 9 macam permainan seru yang bisa kamu mainkan hanya di dalam 1 ID saja. Permainan seru yang tersedia seperti Poker, Domino QQ Dan juga BandarQ Online. Semuanya tersedia lengkap hanya di ABGQQ. Situs ABGQQ sangat mudah dimenangkan, kamu juga akan mendapatkan mega bonus dan setiap pemain berhak mendapatkan cashback mingguan. ABGQQ juga telah diakui sebagai Bandar Domino Online yang menjamin sistem FAIR PLAY disetiap permainan yang bisa dimainkan dengan deposit minimal hanya Rp.25.000. DEWI365 adalah Bandar Judi Bola Terpercaya & resmi dan terpercaya di indonesia. Situs judi bola ini menyediakan fasilitas bagi anda untuk dapat bermain memainkan permainan judi bola. Didalam situs ini memiliki berbagai permainan taruhan bola terlengkap seperti Sbobet, yang membuat DEWI365 menjadi situs judi bola terbaik dan terpercaya di Indonesia. Tentunya sebagai situs yang bertugas sebagai Bandar Poker Online pastinya akan berusaha untuk menjaga semua informasi dan keamanan yang terdapat di POKERQQ13. Kotakqq adalah situs Judi Poker Online Terpercayayang menyediakan 9 jenis permainan sakong online, dominoqq, domino99, bandarq, bandar ceme, aduq, poker online, bandar poker, balak66, perang baccarat, dan capsa susun. Dengan minimal deposit withdraw 15.000 Anda sudah bisa memainkan semua permaina pkv games di situs kami. Jackpot besar,Win rate tinggi, Fair play, PKV Games