Howdy, Stranger!

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

Supported by

[open] Quit by keypress

edited September 2014 in OpenSesame

Hi all! First post here. We started using Opensesame for our Psychology course to build experiments, and now I've quite gotten to like it. So I was now trying to program an experiment of my own, but as it turns out that is harder than expected. So far I've done all the easy stuff (setting up a boring experiment), however what I can't seem to figure out is how to do the following.

I want the user to be able to quit by pressing a key. So right now the setup is I ask for some data, give an instruction, then the loop happens which is a simple and boring task, and the experiment is how long the users continue doing this loop.

For this I need the user to be able to quit the experiment and for it to still be logged. As far as I know it is only possible to quit by pressing esc, but when escape is pressed no logging happens.

It appears I can log the time by logging time_fixatie (my first sketchpad in the loop sequence), so I think I've figured that part out. It's just the having users be able to quit the experiment at any time they want by pressing a button that I can't seem to get right.

Any help would be very much appreciated!

Comments

  • edited 5:10PM

    Hi,

    There are many ways to abort an experiment, but in your case it seems like you simply want to stop a loop whenever the participant has pressed a specific key. Is that right?

    You can do this using the break-if statement, which you'll find under 'Show advanced options' of the loop item. Say that you enter the following break-if statement:

    [response] = q
    

    This means that the loop will end (or rather, no new cycle will start) when the variable response has the value q. Combined with a keyboard_response this will allow the participant to abort the loop by pressing 'q'.

    Does that make sense?

    Cheers,
    Sebastiaan

    Buy Me A Coffee

  • Hi sebastiaan,

    I have been trying your solution for my experiment but it doesn't work.

    Basically I want them to quit the experiment after they make a keypress to reject the consent form. But I keep getting an error of variable not present even when I try correct_response. Is there any other solution I could try?

    Best,

    H

  • Hi @hulya ,

    What exactly do you mean? How do you present the consent form, and how is the response collected? And do you want to be able to run the experiment online with OSWeb (which has some restrictions) or on the desktop?

    Cheers!

    Sebastiaan

    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