amihai_gottlieb
About
- Username
- amihai_gottlieb
- Joined
- Visits
- 54
- Last Active
- Roles
- Member
Comments
-
Hi Stephan, I tried to take a look at the experiment but it did not work for me for some reason. I did look at the code in it though and saw that it is way above my level of understading. At this point, I think I will seek paid assistance. Do you…
-
DahmSF, I do not really know how to code so I cannot identify the specific part of the code that enables to present stimuli while a button is pressed. Can you point me to this part? Also, in my experiment, I measure the duration of the pressed butt…
-
Bump. Help anyone?
-
Hi Sebastiaan, DahmSF, Thanks for the answers. Sebastiaan - I am attaching my experiment. Notice it is a bit "dirty" and has some scripts used for other purposes that I got from people in this forum (and for that I am grateful, I do not…
-
Eduard, Thanks for the link. I understand that I can use the chr() function to return the key but I do not know how to implement it in the code. Do you think this will this work (I do not know how to code in python): self.experiment.set("key…
-
Dear Eduard, Thanks for answering. I ended up solving the problem by reading past posts in the forum and combining the answers from 3 different ones. This is the code I ended up using in the "prepeare" part of the inline script in the beg…
-
Eduard, I just noticed that I never answered your message. Sorry about that. I ended up using the following code in the run part of the inline script: import pygame from pygame.locals import * key_down_time = None while key_down_time == None: …
-
Jarik, or anyone else how can help, Is there a way to record which button was pressed using the inline script item? Amihai
-
Dear Jarik, I did what you wrote and it workes! Thank you very much. Amihai
-
Jarik, Thanks for the tip! I found this thread: http://forum.cogsci.nl/index.php?p=/discussion/37/solved-how-to-log-the-duration-of-a-key-press which looks very relevant, but I can not figure out where to put this script and how to define the key…
-
Hi Pascal, Thanks for the help. I found this thread: http://forum.cogsci.nl/index.php?p=/discussion/2271/measure-duration-of-key-press But unfortunately, I do not know python very well and cannot understand which part of the code I can use just …
-
Or maybe anyone else has an idea how to measure how much time a button was pressed using a keyboard response? Amihai
-
Dear Pascal, I just saw your answer to my questions (after quite a delay, sorry..). In my exp I am asking participants to reproduce duration times of stimuli by pressing the space button. Is there a way to measure the time this button was pressed…
-
Would it be possible to allows to collapse items in the overview and leave them collapsed until you want to expand them again? As it is, I can collapse all those loops, but the application auto-expands them on the next command of any kind.
-
Hi Josh, I am using the sketchpad to display the images from the loop function. This is the text from the sketchpad script: set duration "[duration]" set description "Displays stimuli" draw image center=1 file="[words]&qu…
-
Still no luck. doed any one have an idea how to solve this?
-
Hi Josh, First of all, thank you. Secondly, I did not understand your answer. I am using a loop function to randomly show the pictures from a variable list with the pictures names. I have two categories of pictures so to randomly show a different …
-
Dear Eduard (or anyone else who can help), Thank you very much for your replay. I used your tip and eventually managed to find a plausible solution. Yet, now I have another problem: I need to log the pictures that were eventually presented in the l…
-
Dear Eduard, I solved part of the randomization problem using loop functions. I was thinking to use the "less cycles than the variable levels in a loop" solution to randomize the number of stimuli from each category (although not an eleg…
-
Any help? I have done some progress and have another question: Is there a way to run less cycles than the variable levels in a loop? meaning the loop will choose randomly from the levels. I tried putting [a variable] in the cycles number but got a…
-
Dear Josh, I am not sure i understood everything you wrote but i think i got the main idea and it should solve my problem. Thank you very much! Amihai
-
Dear Lotje, I have done what you wrote and it solved my problem! Thank you very very much. One comment - i needed to make sure to put the lDurations function before in a preparation part before the loop. Amihai