Howdy, Stranger!

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

Supported by

[solved] Recording first keypress

edited March 2015 in OpenSesame

Hello dear OpenSesame users;

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 time (Interval between appearing the form_text_input and first keypress time). Is there an option for this purpose? For example can we add the first keypress as a "new variable"?

Thank you in advance.

Comments

  • 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: Haven't seen this post, before the one in the other thread. Just ignore that one.

    Buy Me A Coffee

  • edited 2:26AM

    Thanks for your help and kindness Eduard,

    I think i should learn some inline_coding in the coming days.

    Have a nice working day.

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