<div dir="ltr">Hi there!
<div>I want to run joystick script in e-prime2 , i want get response joystick with button1 or button2.</div><div>I have textdisplay1 with 3 second duration.</div><div><br></div><div>i wrote this script, it doesnt work!</div>
<div>if i delete and ((Clock.Read - TextDisplay1.OnsetTime)<=3000 then it works but infinite time</div><div>i want limit 3 second(3000 msec)</div><div>how to change this script, and i want response time script and correct response.</div>
<div><br></div><div>Thank</div><div>Eli Koren</div><div><br></div><div><br></div><div><br></div><div><div>dim t0,t1</div><div><br></div><div>Dim ptCursor As Point </div><div><br></div><div>Do </div><div><br></div><div>Loop Until Joystick.Buttons And (ebJoystickButton1 or ebJoystickButton2 ) and ((Clock.Read - TextDisplay1.OnsetTime)<=3000) </div>
<div><br></div><div>if Joystick.Buttons then</div><div>c.SetAttrib "JoystickRTTime", Clock.Read </div><div><br></div><div>c.Setattrib "JoystickRT", Clock.Read - TextDisplay1.OnsetTime </div><div><br></div>
<div>Joystick.GetCursorPos ptCursor.x, ptCursor.y </div><div><br></div><div>c.SetAttrib "JoystickX", ptCursor.x </div><div><br></div><div>c.SetAttrib "JoystickY", ptCursor.y</div><div>end if</div></div>
<div><br></div><div><br></div></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 />