Re: [psychopy-users] Cannot stop script

1,459 views
Skip to first unread message

Jonathan Peirce

unread,
Jan 25, 2013, 8:01:14 AM1/25/13
to psychop...@googlegroups.com
Why would you expect "Cmnd+." to have any effect? The scripts stop only
if you program it to stop on a particular key press. For instance, quite
a few of the Coder demos are programmed to quit if the Esc key or the Q
key are pressed. The builder experiments, by default, will quit at any
time if Esc is pressed. Any other keyboard handling you need to program
in yourself. If you don't give any instructions about how/when to end
then scripts won't end. While preparing a new experiment it's a good
idea to use a window for the experiment rather than full-screen mode -
that way you can always press the big red stop button to force an end if
you forgot to program one in.

Jon

On 25/01/2013 02:32, Phoebe Wong wrote:
> Hi,
>
> I'm totally new to Python and Psychopy, pretty new to writing scripts.
> I've been using the builder mode, Psychopy 1.76.00, Mac OS X 10.6.8.
>
> I was using Psychopy 1.74, and that didn't really work for me.
> Although I could run demos at first, I could never stop scripts by
> pressing "Cmnd+." nor "Esc". Basically, I could not stop scripts at
> all, so if a demo or my script was running, I just had to wait for it
> to finish or reboot my computer. I'm still experiencing the same
> issues, but now my scripts are running as well, whereas they did not
> run on Psychopy 1.76.00.
>
> Thanks,
>
> Phoebe
> --
> You received this message because you are subscribed to the Google
> Groups "psychopy-users" group.
> To post to this group, send email to psychop...@googlegroups.com.
> To unsubscribe from this group, send email to
> psychopy-user...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/psychopy-users/-/LRuaCi6tDzkJ.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

--
Jonathan Peirce
Nottingham Visual Neuroscience

http://www.peirce.org.uk/

Jeremy Gray

unread,
Jan 25, 2013, 8:13:27 AM1/25/13
to psychop...@googlegroups.com
Cmd+. is listed as the option to "stopScript" in the key-bindings preferences. However, this will only work if the Coder or Builder application window has the focus, which is rarely the case when an experiment is running. So perhaps this keybinding is misleading?

Phoebe, you might check your Experiment settings (blue square icon with double headed white arrow inside) and make sure "Enable escape" is selected (enabled = checked). This only influences that particular builder experiment.

And on mac you can force-quit a program rather than reboot your computer. option-command-escape. 

--Jeremy


On Fri, Jan 25, 2013 at 8:01 AM, Jonathan Peirce <jon.p...@gmail.com> wrote:
Why would you expect "Cmnd+." to have any effect? The scripts stop only if you program it to stop on a particular key press. For instance, quite a few of the Coder demos are programmed to quit if the Esc key or the Q key are pressed. The builder experiments, by default, will quit at any time if Esc is pressed. Any other keyboard handling you need to program in yourself. If you don't give any instructions about how/when to end then scripts won't end. While preparing a new experiment it's a good idea to use a window for the experiment rather than full-screen mode - that way you can always press the big red stop button to force an end if you forgot to program one in.

Jon


On 25/01/2013 02:32, Phoebe Wong wrote:
Hi,

I'm totally new to Python and Psychopy, pretty new to writing scripts. I've been using the builder mode, Psychopy 1.76.00, Mac OS X 10.6.8.

I was using Psychopy 1.74, and that didn't really work for me. Although I could run demos at first, I could never stop scripts by pressing "Cmnd+." nor "Esc". Basically, I could not stop scripts at all, so if a demo or my script was running, I just had to wait for it to finish or reboot my computer. I'm still experiencing the same issues, but now my scripts are running as well, whereas they did not run on Psychopy 1.76.00.

Thanks,

Phoebe
--
You received this message because you are subscribed to the Google Groups "psychopy-users" group.
To post to this group, send email to psychopy-users@googlegroups.com.
To unsubscribe from this group, send email to psychopy-users+unsubscribe@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msg/psychopy-users/-/LRuaCi6tDzkJ.
For more options, visit https://groups.google.com/groups/opt_out.


--
Jonathan Peirce
Nottingham Visual Neuroscience

http://www.peirce.org.uk/
--
You received this message because you are subscribed to the Google Groups "psychopy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to psychopy-users+unsubscribe@googlegroups.com.

To post to this group, send email to psychopy-users@googlegroups.com.

Jonathan Peirce

unread,
Jan 25, 2013, 8:17:08 AM1/25/13
to psychop...@googlegroups.com

On 25/01/2013 13:13, Jeremy Gray wrote:
> Cmd+. is listed as the option to "stopScript" in the key-bindings
> preferences. However, this will only work if the Coder or Builder
> application window has the focus, which is rarely the case when an
> experiment is running. So perhaps this keybinding is misleading?
aaah, I see. Yes, I don't see any point in a key binding for that (and
hadn't realised/remembered there was one!)
Jon

Jeremy Gray

unread,
Jan 25, 2013, 8:43:06 AM1/25/13
to psychop...@googlegroups.com
also, Phoebe, try this: run the coder demo > input > what_key.py, press the esc key, and report back what it says. for me the output (in the coder output window) is ['escape']. if it does not say 'escape', then the usual default way to stop a script will not work for you. 

--Jeremy


--
You received this message because you are subscribed to the Google Groups "psychopy-users" group.
To post to this group, send email to psychopy-users@googlegroups.com.
To unsubscribe from this group, send email to psychopy-users+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages