Howdy, Stranger!

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

Supported by

Record response_time when Mouse is being moved not clicked

Hi everyone,

I'm creating an experiment in which geometrical forms will be presented on different pictures with different location. The subject task will be to press a key on the keyboard when a square is presented and to click on the target when a circle is presented

For the mouse condition, I want to record Time_response when the target is being clicked but also when the mouse is being moved (when the motor program is being initiated) so the response-time won't be dependant of the distance between mouse and target.

So, I set the Mouse pos :

souris = Mouse()


I want to get the time response when the pos becomes different from(0,0)

I hope I'm clear..

Thank u for responses !

Best Regards


  • edited March 2019


    if you use the mousetrap_response item to collect the mouse response, you can use it to reset the mouse to the specified position. It also automatically computes the initiation_time variable, which is the time until any movement was initiated (which is I think the time you are interested in).



  • Hi Pascal,

    Thank u for your quick answer

    I don't have mousetrap and I decided to install it.

    I followed the instructions and I wrote in the debug window :

    import pip

    pip.main(['install', ''])

    But I can't install it because of my old version of pip I guess :

    You are using pip version 9.0.1, however version 19.0.3 is available.

    You should consider upgrading via the 'python -m pip install --upgrade pip' command.

    But when I tap the command : python -m pip install --upgrade pip

    I have this message : NameError: name 'python' is not defined

    What should I do ?

    Thank u

  • How can I upgrade my pip from OpenSesame ?

  • The message you are posting is not an error but a warning, because OpenSesame is using an old version of pip. If you have run the commands specified above, you simply need to restart OpenSesame and the mousetrap items should be present. If not, could you post the complete message you get after running the commands?

  • import pip

    pip.main(['install', ''])




    Traceback (most recent call last):

     File "C:\Program Files (x86)\OpenSesame\lib\site-packages\pip\", line 215, in main

      status =, args)

     File "C:\Program Files (x86)\OpenSesame\lib\site-packages\pip\commands\", line 335, in run

     File "C:\Program Files (x86)\OpenSesame\lib\site-packages\pip\", line 749, in build


     File "C:\Program Files (x86)\OpenSesame\lib\site-packages\pip\req\", line 380, in prepare_files


     File "C:\Program Files (x86)\OpenSesame\lib\site-packages\pip\req\", line 634, in _prepare_file


     File "C:\Program Files (x86)\OpenSesame\lib\site-packages\pip\req\", line 129, in prep_for_dist


     File "C:\Program Files (x86)\OpenSesame\lib\site-packages\pip\req\", line 439, in run_egg_info

      command_desc='python egg_info')

     File "C:\Program Files (x86)\OpenSesame\lib\site-packages\pip\utils\", line 676, in call_subprocess

      line = console_to_str(proc.stdout.readline())

     File "C:\Program Files (x86)\OpenSesame\lib\site-packages\pip\compat\", line 73, in console_to_str

      return s.decode(sys.__stdout__.encoding)

    AttributeError: 'NoneType' object has no attribute 'encoding'

    You are using pip version 9.0.1, however version 19.0.3 is available.

    You should consider upgrading via the 'python -m pip install --upgrade pip' command.

  • Hmm this is weird.

    I just checked the installation procedure using OpenSesame 3.2.7 under Windows 7 and Windows 10 and it worked for me.

    I run OpenSesame as an administrator and then paste the following two lines in the debug window

    import pip
    pip.main(['install', ''])

    The resulting message is:

    Installing collected packages: opensesame-plugin-mousetrap
     Running install for opensesame-plugin-mousetrap: started
      Running install for opensesame-plugin-mousetrap: finished with status 'done'
    Successfully installed opensesame-plugin-mousetrap-1.3.0
    You are using pip version 9.0.1, however version 19.0.3 is available.
    You should consider upgrading via the 'python -m pip install --upgrade pip' command.
    Out[1]: 0

    Which version of OpenSesame and which operating system are you using?

  • Indeed it's weird..

    I'm using Opensesame 3.2.7 (python 3.6.4) as well and my Os is windows 10 64bits. I already tried to reinstall OpenSesame but it still doesn't work.

  • Update !

    I installed the 32 bits version and.. It works !

    Don't know why

    Thank u for your help,

    I'll come back to you if I have questions about the use of mousetrack

    Best regards !

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 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