TIMER_ON N

REND ACTIF L'OBJET SYSTÈME TIMER NUMÉRO N



ACTION

La commande TIMER_ON N rend actif l'objet système TIMER désigné par son numéro N: le TIMER se déclenchera périodiquement.


SYNTAXE : TIMER_ON N


UTILISATION


ERREUR


EXEMPLE

' après 5 secondes, affiche toutes les secondes un nombre de 1 à 10 puis s'arrête

label compte

dim i%

' crée un TIMER

timer 1

' le TIMER est inactivé

timer_off 1

on_timer 1,compte

' attendre 5 secondes

wait 5000

' le TIMER est activé

timer_on 1

end

compte:

i%=i%+1

print i%

if i%=10 then timer_off 1

return


EN RAPPORT

TIMER

ON_TIMER

TIMER_INTERVAL

TIMER_OFF

TIMER_OFF_ALL


Content created by Jack. Updated March 07, 2025