On 8 Jun 2012, at 11:54, Dave Park wrote: > If I create a REPeat loop thus: > > 100 Frame=0 : Keypress=0 > 110 REPEAT loop > 120 a$=INKEY$ > 130 Frame=Frame+1 > 140 IF a$<>"" THEN Keypress=Keypress+1 > 150 AT 0,0 : PRINT Frame, Keypress > 160 END REPeat loop
INKEY$(-1) will wait until you press a key. INKEY$(3) will wait for 3 ticks for your keypress. INKEY$ will return (nearly) immediately. George _______________________________________________ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm