HTBasic Help
×
Menu
Index

off key Example

10    ON KEY 7 GOTO Here
20    ON DELAY 10 GOTO Stophere
30    PRINT "Press F7 ONLY three times in 10 seconds."
40    LOOP
50 Loop: GOTO Loop
60 Here: PRINT "F7 pressed"
70      Counter=Counter+1
80      IF Counter=3 THEN OFF KEY
90    END LOOP
100 Stophere: PRINT "OFF KEY works properly."
110   END