If I am understanding your experiment correctly, there is an easier way to do it in e-prime.<div><br></div><div>Assuming that you want to do a go-nogo task with two go stimulus,</div><div><br></div><div>setup a list with a target property column with a, b, and c (c being the <i>nothing</i> nogo stimulus).</div>
<div><br></div><div>Make a column with the correct response (corr).  Assign a for a, b for b, and <i>nothing </i>for c.</div><div><br></div><div>Set [corr] as your correct response for the target object.</div><div><br></div>
<div>Now the correct response for c would be to not press anything (nogo). Set the target object duration as 3000 ms.</div><div><br></div><div>Hope this helps.</div><div><br></div><div>- Jay</div><div><br><br><div class="gmail_quote">
On Tue, Nov 1, 2011 at 5:14 AM,  <span dir="ltr"><<a href="mailto:e-prime@googlegroups.com">e-prime@googlegroups.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div style="font-family:arial;font-weight:bold;color:#222222;padding:0px"> 
  <a name="1335e9fe9b6ee641_digest_top" style="color:#222222">Today's Topic Summary</a></div>
<p>Group: <a style="color:15c;text-decoration:none" href="http://groups.google.com/group/e-prime/topics" target="_blank">http://groups.google.com/group/e-prime/topics</a></p>
<ul style="margin-left:3px;padding-left:0px">
<li type="square" style="color:#555555"><a style="color:15c;text-decoration:none" href="#1335e9fe9b6ee641_group_thread_0">Simulating Keypress (beginners question)</a> [2 Updates]</li>

</ul>


  
  <a name="1335e9fe9b6ee641_group_thread_0"></a>
  <div style="background-color:#f5f5f5;font-family:arial;border-top:1px solid #e5e5e5;padding:4px 0 5px 32px"> <a href="http://groups.google.com/group/e-prime/t/6a124a72e8e43a19" style="color:15c;text-decoration:none" target="_blank">Simulating Keypress (beginners question)</a></div>


  
    <ul>
      <span style="color:;font-weight:bold">Marc <<a href="mailto:marclatz885@googlemail.com" target="_blank">marclatz885@googlemail.com</a>></span> Oct 31 09:46AM -0700
       <br> <br>
      hi there,<br>
 <br>
I'm just starting using E-Prime (with some VB experience, though) and<br>
was trying to do something simple as that:<br>
 <br>
There are three stimuluses ("1","2","nothing") displayed in a<br>
TextDisplay element which is set to react on event.<br>
Correct responses for 1 is 1, for 2 is 2 and for nothing I'd like it<br>
to be nothing at all.<br>
In case the stimulus is 1 or 2 the program is supposed to wait for the<br>
user to make his input, in the "nothing" case it's supposed to wait<br>
for 3 or so seconds and then go to the next stimulus.<br>
 <br>
I tried to solve this via VB skills and I'm absolutely stuck here...<br>
 <br>
My code:<br>
 <br>
Dim Start as Long<br>
Dim now as Long<br>
Start = Clock.Read<br>
 <br>
if TextDisplay1.CRESP = "" then<br>
        do<br>
        DoKeys "a"<br>
        now= Clock.Read - Start<br>
        loop until now>2000<br>
end if<br>
 <br>
What I'm trying to do is simulating the press of some random key (a in<br>
this case) in order to move to the next event as soon as the 2000 ms<br>
are over (a is also among the allowable inputs in my TextDisplay). I<br>
tried the same with SendKeys and it won't work either, it does,<br>
though, when I press the a key manually.<br>
 <br>
What am I doing wrong?<br>
I'm almost certain there is an easier way to do what I want to do but<br>
unfortunately I don't seem to be able to figure out what to google/e-<br>
basic-/eprime search.<br>
 <br>
Some help (may it be "search for xyz in abc before asking, fool")<br>
would be greatly appreciated!!<br>
 <br>
Marc<br>
 <br>
P.S.: In case you wonder - the programs purpose is simply getting the<br>
loop to work and then applying it to a bitter, existing e-prime file<br>
which we want to use as a dependent variable.<br>

      <p> </p>
    </ul>
  
    <ul>
      <span style="color:;font-weight:bold">ben robinson <<a href="mailto:baltimore.ben@gmail.com" target="_blank">baltimore.ben@gmail.com</a>></span> Oct 31 01:24PM -0400
       <br> <br>
      if i've understood the question, this is very easy to accomplish.<br>
on whatever object is presenting your stimuli and collecting your<br>
responses (probably the same object, possibly a TextObject or<br>
SlideObject), set the InputDevice to Keyboard, Allowable responses to<br>
"12" (without the quotes, which will make both 1 and 2 allowable<br>
resposes), Duration to 3000, and EndAction to Terminate.<br>
doing this will cause your Stim object to run for 3000 ms, during<br>
which time it will accept responses of 1 or 2 only, and when one of<br>
those responses is received the Stim object will Terminate, going to<br>
the object in your procedure.  if no response is received the object<br>
will terminate after 3000 ms.  this should be covered somewhere near<br>
the very beginning of the Getting Started guide which comes with<br>
E-Prime...<br>
 <br>
ben<br>
 <br>

      <p> </p>
    </ul>
  



  <div style="color:#555555;padding:27px 0 0 40px">
  <p>
    You received this message because you are subscribed to the Google Group e-prime.<br>
    You can <a style="color:15c;text-decoration:none" href="mailto:e-prime@googlegroups.com" target="_blank">post via email</a>.<br>
    To unsubscribe from this group, <a style="color:15c;text-decoration:none" href="mailto:e-prime+unsubscribe@googlegroups.com" target="_blank">send</a> an empty message.<br>
    For more options, <a style="color:15c;text-decoration:none" href="http://groups.google.com/group/e-prime/topics" target="_blank">visit</a> this group.<br>
  </p><font color="#888888">

<p></p>

-- <br>
You received this message because you are subscribed to the Google Groups "E-Prime" group.<br>
To post to this group, send email to <a href="mailto:e-prime@googlegroups.com" target="_blank">e-prime@googlegroups.com</a>.<br>
To unsubscribe from this group, send email to <a href="mailto:e-prime%2Bunsubscribe@googlegroups.com" target="_blank">e-prime+unsubscribe@googlegroups.com</a>.<br>

For more options, visit this group at <a href="http://groups.google.com/group/e-prime?hl=en" target="_blank">http://groups.google.com/group/e-prime?hl=en</a>.<br>


</font></div></blockquote></div><br></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups "E-Prime" group.<br />
To post to this group, send email to e-prime@googlegroups.com.<br />
To unsubscribe from this group, send email to e-prime+unsubscribe@googlegroups.com.<br />

For more options, visit this group at http://groups.google.com/group/e-prime?hl=en.<br />