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
Comments
Greetings,
The way you initiated your keyboard, it will only recognize shift presses because these are the only things that are in your keylist.
Still, there is the problem of the get_key() command only taking in one key at a time. Possibly, you could follow-up on the get_key() command with another get_key() command where you exclude the key that had already been pressed from the list. In order to make it work only when the keys are pressed simultaneously, you could put the commands in a while-loop, with a very short timeout for the 2nd keypress. You exit the while loop when the 2nd keypress was unequal to 'None'.
Let me know if this works.
Cheers
Josh
Thanks Josh for the very quick answer.
I am not sure whether a second get_key command will bring the desired result, as I do not expect the following stimulus to appear with the first response anymore.
I like to see the experiment go on as it already does, just to log any keypress that occurs during the experiment.
What I am actually looking for is a command at the beginning of the experiment that says that any key is going to be logged as it is done in "presentation". In a way that i do not have to define the keypresses in advance. I cannot foresee what participants are willing to do, but when its logged i may understand it afterwards.
Is that possible in OpenSesame?
Greetz Stephan
Hi Stephan,
How about you put your code into a
while
loop and in which you keep on sampling key presses e.g.,kb.get_key(timeout=10)
(After which you flush the keyboard, to get rid of pending key presses). For every key press you append the key to a list of all pressed keys and the response time to all times. Then in the end of your trial (outside the while loop), you loop over your list of key presses and for each write a new line to the log filelog.write_vars()
or write the entire list to the file. However, if you opt for latter, be aware that the list is converted to a string and is not really accessible any more. You still can retrieve the information, but it requires some hacking during preprocessing your data.Does this make sense?
Eduard
Dear Eduard and Josh,
after 3 days of hard work i found a very nice solution.
Nevertheless i still have one last problem. A fundamental problem.
When the presses are perfomed synchroneously, it does not log anything.
I believe that there is a minimum inter onset interval in open sesame that interferes with my code.
Is there a way to set the inter onset interval (time between two key presses) to 0?
Here is my code.
That is how my output should look like (and looks like when i do not press in synchrony).
I played a little around and found out that the problem lies (at least) in the trial when shift is pressed first.
I could imagine that it has to do with the refresh rate of the next stimulus. (Just a guess)
At the moment shift is pressed the next stimulus is presented. During builiding up the next stimulus, the second button is pressed. Still, i do not understand why it is not counted (as it does not count for dissappearence of this stimulus, only logged).
I am using xpyriment backend.
Is there a way to handle this?
Is there something like a debounce time which i have to set to 0?
As i do not find a solution I have now tried to use the coroutines function and rewrote the old script for the inline_script.
First of all i have some simple implementation questions:
1. Where do i place the inline_script?
The coroutine item does not allow to put inline_script inside ("inline_script does support coroutines").
Hence i tried to put the inline_script before and after the coroutine.
2. How do i refer to the python function "Simultan" in the generator function name field?
I tried Simultan, 'Simultan', "Simultan", [Simultan] and the same with ==
But i always get the message that it is not found.
Thanks Stephan
I solved it.
Here is a version that works fine.
Mind:
1. Do not use USB connections for your keyboard.
2. Do not use SHIFT or CTRL keys
Do not use log.write_vars() within the loop. It makes the loop too slow.
Here is an alternative.