Megellai,
The TOH is driven by clicking on targets. There is a way to load a
keystroke to monitor as well, but this is sort of an experimental feature
that would take a bit to get exactly right.
The code you have won't work because it will block until you hit the space
bar, and then it will always be true. You might try doing it with
WaitForAnyKeyDownWithTimeout(), and then if you don't hit it in time, it
will just move on to the next trial. Such as:
resp <- WaitForAnyKeyDownWithTimeout(500)
if(resp == " ")
{
cont <- 0
}
You might also do it by adding a hidden region to click on, if you want
to be able to skip the trial at any point.
If you try this and run into more trouble, send me the code and I'll have
a look at it.
Shane
> Dear PEBL users,
> I am trying to create a key combination for skipping a trial in Tower of
> Hanoi and I don't want to break the entire experiment. I am currently
> using the experiment in Turn Limit mode.
> I tried this loop:
> stop <- WaitForKeyDown ("<space>")
> if (stop == 1){continue <- 0 }
> It does not seem to work at all and the experiment stops right after the
> first move.
> Any suggestion?
>
>
> Gábor Megellai
> ------------------------------------------------------------------------------
> See everything from the browser to the database with AppDynamics
> Get end-to-end visibility with application monitoring from AppDynamics
> Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk_______________________________________________
> Pebl-list mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/pebl-list
>
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Pebl-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pebl-list